sai_you_yun_change_model.dart
2.78 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
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 = [];
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;
Now? now;
SaiYouYunChangeSunModel({this.temp, this.content, this.now});
SaiYouYunChangeSunModel.fromJson(Map<String, dynamic> json) {
temp = json['temp'];
content =
json['content'] != null ? new Content.fromJson(json['content']) : null;
now = json['now'] != false && json['now'] != null
? new Now.fromJson(json['now'])
: 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();
}
if (this.now != null) {
data['now'] = this.now!.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;
}
}
class Now {
String? id;
String? sid;
String? smsCode;
String? content;
Now({
this.id,
this.sid,
this.smsCode,
this.content,
});
Now.fromJson(Map<String, dynamic> json) {
id = json['id'];
sid = json['sid'];
smsCode = json['sms_code'];
content = json['content'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['sid'] = this.sid;
data['sms_code'] = this.smsCode;
data['content'] = this.content;
return data;
}
}