get_export_info_model.dart
3.45 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
class GetExportInfoModel {
int ret;
GetExportInfoSunModel data;
String msg;
GetExportInfoModel({this.ret, this.data, this.msg});
GetExportInfoModel.fromJson(Map<String, dynamic> json) {
ret = json['ret'];
data = json['data'] != null
? new GetExportInfoSunModel.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 GetExportInfoSunModel {
Info info;
List<ExcelData> list;
List<dynamic> excelData;
List<Count> count;
GetExportInfoSunModel({this.info, this.list, this.count});
GetExportInfoSunModel.fromJson(Map<String, dynamic> json) {
info = json['info'] != null ? new Info.fromJson(json['info']) : null;
if (json['list'] != null) {
list = <ExcelData>[];
json['list'].forEach((v) {
list.add(new ExcelData.fromJson(v));
});
excelData = json['list'];
}
if (json['count'] != null) {
count = <Count>[];
json['count'].forEach((v) {
count.add(new Count.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.info != null) {
data['info'] = this.info.toJson();
}
if (this.list != null) {
data['list'] = this.list.map((v) => v.toJson()).toList();
}
if (this.count != null) {
data['count'] = this.count.map((v) => v.toJson()).toList();
}
return data;
}
}
class Info {
String sellername;
Info({this.sellername});
Info.fromJson(Map<String, dynamic> json) {
sellername = json['sellername'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['sellername'] = this.sellername;
return data;
}
}
class ExcelData {
String cdate;
String ddate;
String status;
String ddateSolt;
String tableinfo;
String rname;
String phone;
String nickName;
String noteName;
ExcelData(
{this.cdate,
this.ddate,
this.status,
this.ddateSolt,
this.tableinfo,
this.rname,
this.phone,
this.nickName,
this.noteName});
ExcelData.fromJson(Map<String, dynamic> json) {
cdate = json['cdate'];
ddate = json['ddate'];
status = json['status'];
ddateSolt = json['ddate_solt'];
tableinfo = json['tableinfo'];
rname = json['rname'];
phone = json['phone'];
nickName = json['nick_name'];
noteName = json['note_name'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['cdate'] = this.cdate;
data['ddate'] = this.ddate;
data['status'] = this.status;
data['ddate_solt'] = this.ddateSolt;
data['tableinfo'] = this.tableinfo;
data['rname'] = this.rname;
data['phone'] = this.phone;
data['nick_name'] = this.nickName;
data['note_name'] = this.noteName;
return data;
}
}
class Count {
String total;
String nickName;
Count({this.total, this.nickName});
Count.fromJson(Map<String, dynamic> json) {
total = json['total'];
nickName = json['nick_name'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['total'] = this.total;
data['nick_name'] = this.nickName;
return data;
}
}