GetDzSellerConfModel.dart
3.19 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
import 'dart:convert' as convert;
class GetDzSellerConfModel {
int ret;
GetDzSellerConfSunModel data;
String msg;
GetDzSellerConfModel({this.ret, this.data, this.msg});
GetDzSellerConfModel.fromJson(Map<String, dynamic> json) {
ret = json['ret'];
data = json['data'] != null
? new GetDzSellerConfSunModel.fromJson(json['data'])
: null;
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.toJson();
}
data['msg'] = this.msg;
return data;
}
}
class GetDzSellerConfSunModel {
String id;
String sid;
String isSms;
String templateId;
String isOpenOrder;
String isOpenWine;
String dzVersion;
String isCheckedCall;
String isCheckedApp;
String isCheckedLite;
String reserveMode;
String isDisplayDish;
String isNewTemplate;
AllCookStyle cookStyle;
String cdate;
GetDzSellerConfSunModel(
{this.id,
this.sid,
this.isSms,
this.templateId,
this.isOpenOrder,
this.isOpenWine,
this.dzVersion,
this.isCheckedCall,
this.isCheckedApp,
this.isCheckedLite,
this.reserveMode,
this.isDisplayDish,
this.isNewTemplate,
this.cookStyle,
this.cdate});
GetDzSellerConfSunModel.fromJson(Map<String, dynamic> json) {
id = json['id'];
sid = json['sid'];
isSms = json['is_sms'];
templateId = json['template_id'];
isOpenOrder = json['is_open_order'];
isOpenWine = json['is_open_wine'];
dzVersion = json['dz_version'];
isCheckedCall = json['is_checked_call'];
isCheckedApp = json['is_checked_app'];
isCheckedLite = json['is_checked_lite'];
reserveMode = json['reserve_mode'];
isDisplayDish = json['is_display_dish'];
isNewTemplate = json['is_new_template'];
cookStyle = AllCookStyle.fromJson(convert.json.decode(json['cook_style']));
cdate = json['cdate'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['sid'] = this.sid;
data['is_sms'] = this.isSms;
data['template_id'] = this.templateId;
data['is_open_order'] = this.isOpenOrder;
data['is_open_wine'] = this.isOpenWine;
data['dz_version'] = this.dzVersion;
data['is_checked_call'] = this.isCheckedCall;
data['is_checked_app'] = this.isCheckedApp;
data['is_checked_lite'] = this.isCheckedLite;
data['reserve_mode'] = this.reserveMode;
data['is_display_dish'] = this.isDisplayDish;
data['is_new_template'] = this.isNewTemplate;
data['cook_style'] = this.cookStyle;
data['cdate'] = this.cdate;
return data;
}
}
class AllCookStyle {
String menuThemeColor;
String index;
AllCookStyle({
this.menuThemeColor,
this.index,
});
AllCookStyle.fromJson(Map<String, dynamic> json) {
menuThemeColor = json['menu_theme_color'];
index = json['index'] ?? "0";
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['menu_theme_color'] = this.menuThemeColor;
data['index'] = this.index ?? '0';
return data;
}
}