app/lib/data/app_placard_data.dart

49 lines
1.1 KiB
Dart
Raw Normal View History

2023-10-09 09:32:07 +08:00
/// version : "255c1fd9-c49c-4031-8733-b38e5363d666"
/// title : "测试公告"
/// content : "星际公民诊断工具 V3 正在开发中..."
/// link : null
/// link_type : "external"
/// always_show : false
/// enable : true
class AppPlacardData {
AppPlacardData({
2024-02-06 20:19:53 +08:00
this.version,
this.title,
this.content,
this.link,
this.linkType,
this.alwaysShow,
this.enable,
});
2023-10-09 09:32:07 +08:00
AppPlacardData.fromJson(dynamic json) {
version = json['version'];
title = json['title'];
content = json['content'];
link = json['link'];
linkType = json['link_type'];
alwaysShow = json['always_show'];
enable = json['enable'];
}
String? version;
String? title;
String? content;
dynamic link;
String? linkType;
bool? alwaysShow;
bool? enable;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['version'] = version;
map['title'] = title;
map['content'] = content;
map['link'] = link;
map['link_type'] = linkType;
map['always_show'] = alwaysShow;
map['enable'] = enable;
return map;
}
2024-02-06 20:19:53 +08:00
}