reserve_info_model.dart
2.22 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
import 'package:json_annotation/json_annotation.dart';
part 'reserve_info_model.g.dart';
@JsonSerializable()
class ReserveInfoModel extends Object {
@JsonKey(name: 'ret')
int ret;
@JsonKey(name: 'data')
SunReserveInfoModel data;
@JsonKey(name: 'msg')
String msg;
ReserveInfoModel(
this.ret,
this.data,
this.msg,
);
factory ReserveInfoModel.fromJson(Map<String, dynamic> srcJson) =>
_$ReserveInfoModelFromJson(srcJson);
Map<String, dynamic> toJson() => _$ReserveInfoModelToJson(this);
}
@JsonSerializable()
class SunReserveInfoModel extends Object {
@JsonKey(name: 'row')
RowModel row;
@JsonKey(name: 'list')
List<dynamic> list;
@JsonKey(name: 'table')
List<dynamic> table;
SunReserveInfoModel(
this.row,
this.list,
this.table,
);
factory SunReserveInfoModel.fromJson(Map<String, dynamic> srcJson) =>
_$SunReserveInfoModelFromJson(srcJson);
Map<String, dynamic> toJson() => _$SunReserveInfoModelToJson(this);
}
@JsonSerializable()
class RowModel extends Object {
@JsonKey(name: 'id')
String id;
@JsonKey(name: 'tableinfo')
String tableinfo;
@JsonKey(name: 'tid')
String tid;
@JsonKey(name: 'rname')
String rname;
@JsonKey(name: 'sex')
String sex;
@JsonKey(name: 'phone')
String phone;
@JsonKey(name: 'cusman')
String cusman;
@JsonKey(name: 'ddate')
String ddate;
@JsonKey(name: 'cdate')
String cdate;
@JsonKey(name: 'cusdem')
String cusdem;
@JsonKey(name: 'status')
String status;
@JsonKey(name: 'action')
String action;
@JsonKey(name: 'is_set_ddate')
String isSetDdate;
@JsonKey(name: 'ddate_solt')
String ddateSolt;
@JsonKey(name: 'type')
String type;
@JsonKey(name: 'region_name')
String regionName;
@JsonKey(name: 'name')
String name;
RowModel(
this.id,
this.tableinfo,
this.tid,
this.rname,
this.sex,
this.phone,
this.cusman,
this.ddate,
this.cdate,
this.cusdem,
this.status,
this.action,
this.isSetDdate,
this.ddateSolt,
this.type,
this.regionName,
this.name,
);
factory RowModel.fromJson(Map<String, dynamic> srcJson) =>
_$RowModelFromJson(srcJson);
Map<String, dynamic> toJson() => _$RowModelToJson(this);
}