GetDzSellerConfModel.dart
8.07 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
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;
String isStoreSms;
String storeDate;
String isShowPrice;
String isOpenCancel;
String isNotice;
String isMarketing;
String saiyouyun;
Bookinginfo bookinginfo;
String isAllowUpdate;
List<String> isShowRnamePhone;
String isShowNoticeDeposit;
String depositPrice;
String liteStyle;
String storePushMeg;
String storePushSms;
String pcNotPhone;
String isCustomerCancel;
String isAddOver; //是否允许新建过去订单
String isSetOver; //是否允许修改过去订单
String isReserveOver; //是否允许变更订单到过去餐段
String cancelDay;
String cancelShopowner;
String cancelManager;
String cancelOther;
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,
this.isStoreSms,
this.storeDate,
this.isShowPrice,
this.isOpenCancel,
this.isNotice,
this.isMarketing,
this.saiyouyun,
this.bookinginfo,
this.isAllowUpdate,
this.isShowRnamePhone,
this.isShowNoticeDeposit,
this.depositPrice,
this.liteStyle,
this.storePushMeg,
this.storePushSms,
this.pcNotPhone,
this.isCustomerCancel,
this.isAddOver,
this.isSetOver,
this.isReserveOver,
this.cancelDay,
this.cancelShopowner,
this.cancelManager,
this.cancelOther});
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 = json['cook_style'] == null
? null
: AllCookStyle.fromJson(convert.json.decode(json['cook_style']));
cdate = json['cdate'];
isStoreSms = json['is_store_sms'];
storeDate = json['store_date'];
isShowPrice = json['is_show_price'];
isOpenCancel = json['is_open_cancel_temp'];
isNotice = json['is_seller_notice'];
isMarketing = json['is_seller_marketing'];
saiyouyun = json['saiyouyun'];
bookinginfo = json['bookinginfo'] != null && json['bookinginfo'] != false
? new Bookinginfo.fromJson(json['bookinginfo'])
: null;
isAllowUpdate = json['is_allow_update'] ?? '1';
isShowRnamePhone = [];
if (json['is_show_ranme_phone'] != null &&
json['is_show_ranme_phone'] != '') {
convert.json.decode(json['is_show_ranme_phone']).forEach((v) {
isShowRnamePhone.add(v);
});
}
isShowNoticeDeposit = json['is_show_notice_deposit'];
depositPrice = json['deposit_price'];
liteStyle = json['lite_style'];
storePushMeg = json['store_push_meg'];
storePushSms = json['store_push_sms'];
pcNotPhone = json['pc_not_phone'];
isCustomerCancel = json['is_customer_cancel'];
isAddOver = json['is_add_over'];
isSetOver = json['is_set_over'];
isReserveOver = json['is_reserve_over'];
cancelDay = json['temp_cancel_day'] ?? '5';
cancelShopowner = json['temp_for_shopowner'] ?? '1';
cancelManager = json['temp_for_manager'] ?? '1';
cancelOther = json['temp_for_other'] ?? '1';
}
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;
data['is_store_sms'] = this.isStoreSms;
data['store_date'] = this.storeDate;
data['is_show_price'] = this.isShowPrice;
data['is_open_cancel_temp'] = this.isOpenCancel;
data['is_seller_notice'] = this.isNotice;
data['is_seller_marketing'] = this.isMarketing;
data['saiyouyun'] = this.saiyouyun;
if (this.bookinginfo != null) {
data['bookinginfo'] = this.bookinginfo.toJson();
}
data['is_allow_update'] = this.isAllowUpdate;
data['is_show_ranme_phone'] = this.isShowRnamePhone;
data['is_show_notice_deposit'] = this.isShowNoticeDeposit;
data['deposit_price'] = this.depositPrice;
data['lite_style'] = this.liteStyle;
data['store_push_meg'] = this.storePushMeg;
data['store_push_sms'] = this.storePushSms;
data['pc_not_phone'] = this.pcNotPhone;
data['is_customer_cancel'] = this.isCustomerCancel;
data['is_add_over'] = this.isAddOver;
data['is_set_over'] = this.isSetOver;
data['is_reserve_over'] = this.isReserveOver;
data['temp_cancel_day'] = this.cancelDay;
data['temp_for_shopowner'] = this.cancelShopowner;
data['temp_for_manager'] = this.cancelManager;
data['temp_for_other'] = this.cancelOther;
return data;
}
}
class InputSetting {
String uid;
String isShowName;
String isShowPhone;
InputSetting({this.uid, this.isShowName, this.isShowPhone});
InputSetting.fromJson(Map<String, dynamic> json) {
uid = json['uid'];
isShowName = json['is_show_name'];
isShowPhone = json['is_show_phone'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['uid'] = this.uid;
data['is_show_name'] = this.isShowName;
data['is_show_phone'] = this.isShowPhone;
return data;
}
}
class Bookinginfo {
String id;
String sid;
String smsCode;
String content;
Bookinginfo({this.id, this.sid, this.smsCode, this.content});
Bookinginfo.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;
}
}
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;
}
}