You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
91 lines
3.7 KiB
91 lines
3.7 KiB
// GENERATED CODE - DO NOT MODIFY BY HAND |
|
|
|
part of 'popular_sales.dart'; |
|
|
|
// ************************************************************************** |
|
// JsonSerializableGenerator |
|
// ************************************************************************** |
|
|
|
PopularSales _$PopularSalesFromJson(Map<String, dynamic> json) => PopularSales() |
|
..dashMemberList = (json['dashMemberList'] as List<dynamic>?) |
|
?.map((e) => DashMemberList.fromJson(e as Map<String, dynamic>)) |
|
.toList() |
|
..saleProductList = (json['saleProductList'] as List<dynamic>?) |
|
?.map((e) => SaleProductList.fromJson(e as Map<String, dynamic>)) |
|
.toList() |
|
..avgPrice = json['avgPrice'] as String? |
|
..orderNum = (json['orderNum'] as num?)?.toInt() |
|
..storeDailyStatistics = json['storeDailyStatistics'] as List<dynamic>? |
|
..orderSum = json['orderSum'] as String? |
|
..changeData = json['changeData'] == null |
|
? null |
|
: ChangeData.fromJson(json['changeData'] as Map<String, dynamic>) |
|
..paySum = json['paySum'] as String?; |
|
|
|
Map<String, dynamic> _$PopularSalesToJson(PopularSales instance) => |
|
<String, dynamic>{ |
|
'dashMemberList': |
|
instance.dashMemberList?.map((e) => e.toJson()).toList(), |
|
'saleProductList': |
|
instance.saleProductList?.map((e) => e.toJson()).toList(), |
|
'avgPrice': instance.avgPrice, |
|
'orderNum': instance.orderNum, |
|
'storeDailyStatistics': instance.storeDailyStatistics, |
|
'orderSum': instance.orderSum, |
|
'changeData': instance.changeData?.toJson(), |
|
'paySum': instance.paySum, |
|
}; |
|
|
|
DashMemberList _$DashMemberListFromJson(Map<String, dynamic> json) => |
|
DashMemberList() |
|
..id = json['id'] as String? |
|
..name = json['name'] as String? |
|
..phone = json['phone'] as String? |
|
..balance = json['balance'] as String?; |
|
|
|
Map<String, dynamic> _$DashMemberListToJson(DashMemberList instance) => |
|
<String, dynamic>{ |
|
'id': instance.id, |
|
'name': instance.name, |
|
'phone': instance.phone, |
|
'balance': instance.balance, |
|
}; |
|
|
|
SaleProductList _$SaleProductListFromJson(Map<String, dynamic> json) => |
|
SaleProductList() |
|
..productId = json['product_id'] as String? |
|
..saleNum = (json['saleNum'] as num?)?.toInt() |
|
..productName = json['product_name'] as String?; |
|
|
|
Map<String, dynamic> _$SaleProductListToJson(SaleProductList instance) => |
|
<String, dynamic>{ |
|
'product_id': instance.productId, |
|
'saleNum': instance.saleNum, |
|
'product_name': instance.productName, |
|
}; |
|
|
|
ChangeData _$ChangeDataFromJson(Map<String, dynamic> json) => ChangeData() |
|
..addCartChangeRate = (json['addCartChangeRate'] as num?)?.toDouble() |
|
..payCountChangeRate = (json['payCountChangeRate'] as num?)?.toDouble() |
|
..sumAddCartCount = json['sumAddCartCount'] as String? |
|
..sumSettleCount = json['sumSettleCount'] as String? |
|
..sumPaySuccessCount = json['sumPaySuccessCount'] as String? |
|
..sumPV = json['sumPV'] as String? |
|
..totalChangeRate = (json['totalChangeRate'] as num?)?.toDouble() |
|
..sumPayCount = json['sumPayCount'] as String? |
|
..settleChangeRate = (json['settleChangeRate'] as num?)?.toDouble() |
|
..paySuccessChangeRate = (json['paySuccessChangeRate'] as num?)?.toDouble(); |
|
|
|
Map<String, dynamic> _$ChangeDataToJson(ChangeData instance) => |
|
<String, dynamic>{ |
|
'addCartChangeRate': instance.addCartChangeRate, |
|
'payCountChangeRate': instance.payCountChangeRate, |
|
'sumAddCartCount': instance.sumAddCartCount, |
|
'sumSettleCount': instance.sumSettleCount, |
|
'sumPaySuccessCount': instance.sumPaySuccessCount, |
|
'sumPV': instance.sumPV, |
|
'totalChangeRate': instance.totalChangeRate, |
|
'sumPayCount': instance.sumPayCount, |
|
'settleChangeRate': instance.settleChangeRate, |
|
'paySuccessChangeRate': instance.paySuccessChangeRate, |
|
};
|
|
|