sai_you_yun_change_model.dart
2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
class SaiYouYunChangeModel {
int ret;
List<SaiYouYunChangeSunModel> data;
String msg;
SaiYouYunChangeModel({this.ret, this.data, this.msg});
SaiYouYunChangeModel.fromJson(Map<String, dynamic> json) {
ret = json['ret'];
if (json['data'] != null) {
data = new List<SaiYouYunChangeSunModel>();
json['data'].forEach((v) {
data.add(new SaiYouYunChangeSunModel.fromJson(v));
});
}
msg = json['msg'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['ret'] = this.ret;
if (this.data != null) {
data['data'] = this.data.map((v) => v.toJson()).toList();
}
data['msg'] = this.msg;
return data;
}
}
class SaiYouYunChangeSunModel {
String temp;
Content content;
bool select = false;
SaiYouYunChangeSunModel({this.temp, this.content});
SaiYouYunChangeSunModel.fromJson(Map<String, dynamic> json) {
temp = json['temp'];
content =
json['content'] != null ? new Content.fromJson(json['content']) : null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['temp'] = this.temp;
if (this.content != null) {
data['content'] = this.content.toJson();
}
return data;
}
}
class Content {
String id;
String templateCode;
String templateParam;
String templateDemo;
String type;
Content(
{this.id,
this.templateCode,
this.templateParam,
this.templateDemo,
this.type});
Content.fromJson(Map<String, dynamic> json) {
id = json['id'];
templateCode = json['template_code'];
templateParam = json['template_param'];
templateDemo = json['template_demo'];
type = json['type'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['template_code'] = this.templateCode;
data['template_param'] = this.templateParam;
data['template_demo'] = this.templateDemo;
data['type'] = this.type;
return data;
}
}