seller_counts_list.dart
2.65 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
class SellerCountsListModel {
int? ret;
List<SellerCountsListSunModel>? data;
String? msg;
SellerCountsListModel({this.ret, this.data, this.msg});
SellerCountsListModel.fromJson(Map<String, dynamic> json) {
ret = json['ret'];
if (json['data'] != null) {
data = [];
json['data'].forEach((v) {
data!.add(new SellerCountsListSunModel.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 SellerCountsListSunModel {
dynamic monthss;
dynamic totalRserve;
dynamic totalPnum;
dynamic totalDao;
dynamic totalCel;
dynamic totalPrice;
dynamic totalConsume;
dynamic avgPrice;
dynamic totalDaoKe;
dynamic totalTable;
dynamic daoTable;
dynamic storeWine;
dynamic order;
dynamic plancook;
dynamic agvTable;
SellerCountsListSunModel(
{this.monthss,
this.totalRserve,
this.totalPnum,
this.totalDao,
this.totalCel,
this.totalPrice,
this.totalConsume,
this.avgPrice,
this.totalDaoKe,
this.totalTable,
this.daoTable,
this.storeWine,
this.order,
this.plancook,
this.agvTable});
SellerCountsListSunModel.fromJson(Map<String, dynamic> json) {
monthss = json['monthss'];
totalRserve = json['totalRserve'];
totalPnum = json['totalPnum'];
totalDao = json['totalDao'];
totalCel = json['totalCel'];
totalPrice = json['totalPrice'];
totalConsume = json['totalConsume'];
avgPrice = json['avgPrice'];
totalDaoKe = json['totalDaoKe'];
totalTable = json['totalTable'];
daoTable = json['daoTable'];
storeWine = json['storeWine'];
order = json['Order'];
plancook = json['Plancook'];
agvTable = json['agvTable'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['monthss'] = this.monthss;
data['totalRserve'] = this.totalRserve;
data['totalPnum'] = this.totalPnum;
data['totalDao'] = this.totalDao;
data['totalCel'] = this.totalCel;
data['totalPrice'] = this.totalPrice;
data['totalConsume'] = this.totalConsume;
data['avgPrice'] = this.avgPrice;
data['totalDaoKe'] = this.totalDaoKe;
data['totalTable'] = this.totalTable;
data['daoTable'] = this.daoTable;
data['storeWine'] = this.storeWine;
data['Order'] = this.order;
data['Plancook'] = this.plancook;
data['agvTable'] = this.agvTable;
return data;
}
}