store_customer_home_model.g.dart
2.99 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
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'store_customer_home_model.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
StoreCustomerHomeModel _$StoreCustomerHomeModelFromJson(
Map<String, dynamic> json) {
return StoreCustomerHomeModel(
json['ret'] as int,
json['data'] == null
? null
: StoreCustomerHomeSunModel.fromJson(
json['data'] as Map<String, dynamic>),
json['msg'] as String,
);
}
Map<String, dynamic> _$StoreCustomerHomeModelToJson(
StoreCustomerHomeModel instance) =>
<String, dynamic>{
'ret': instance.ret,
'data': instance.data,
'msg': instance.msg,
};
StoreCustomerHomeSunModel _$StoreCustomerHomeSunModelFromJson(
Map<String, dynamic> json) {
return StoreCustomerHomeSunModel(
json['myCustomer'] as int,
json['active'] == null
? null
: Active.fromJson(json['active'] as Map<String, dynamic>),
json['sleep'] == null
? null
: Sleep.fromJson(json['sleep'] as Map<String, dynamic>),
json['drain'] == null
? null
: Drain.fromJson(json['drain'] as Map<String, dynamic>),
(json['seller_user'] as List)
?.map((e) =>
e == null ? null : SellerUser.fromJson(e as Map<String, dynamic>))
?.toList(),
json['distribution'] as int,
);
}
Map<String, dynamic> _$StoreCustomerHomeSunModelToJson(
StoreCustomerHomeSunModel instance) =>
<String, dynamic>{
'myCustomer': instance.myCustomer,
'active': instance.active,
'sleep': instance.sleep,
'drain': instance.drain,
'seller_user': instance.sellerUser,
'distribution': instance.distribution,
};
Active _$ActiveFromJson(Map<String, dynamic> json) {
return Active(
json['count'] as int,
(json['scale'] as num)?.toDouble(),
);
}
Map<String, dynamic> _$ActiveToJson(Active instance) => <String, dynamic>{
'count': instance.count,
'scale': instance.scale,
};
Sleep _$SleepFromJson(Map<String, dynamic> json) {
return Sleep(
json['count'] as int,
(json['scale'] as num)?.toDouble(),
);
}
Map<String, dynamic> _$SleepToJson(Sleep instance) => <String, dynamic>{
'count': instance.count,
'scale': instance.scale,
};
Drain _$DrainFromJson(Map<String, dynamic> json) {
return Drain(
json['count'] as int,
(json['scale'] as num)?.toDouble(),
);
}
Map<String, dynamic> _$DrainToJson(Drain instance) => <String, dynamic>{
'count': instance.count,
'scale': instance.scale,
};
SellerUser _$SellerUserFromJson(Map<String, dynamic> json) {
return SellerUser(
json['count'] as String,
json['nick_name'] as String,
json['uid'] as String,
);
}
Map<String, dynamic> _$SellerUserToJson(SellerUser instance) =>
<String, dynamic>{
'count': instance.count,
'nick_name': instance.nickName,
'uid': instance.uid
};