// GENERATED CODE - DO NOT MODIFY BY HAND part of 'popular_sales.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** PopularSales _$PopularSalesFromJson(Map json) => PopularSales() ..dashMemberList = (json['dashMemberList'] as List?) ?.map((e) => DashMemberList.fromJson(e as Map)) .toList() ..saleProductList = (json['saleProductList'] as List?) ?.map((e) => SaleProductList.fromJson(e as Map)) .toList() ..avgPrice = json['avgPrice'] as String? ..orderNum = (json['orderNum'] as num?)?.toInt() ..storeDailyStatistics = json['storeDailyStatistics'] as List? ..orderSum = json['orderSum'] as String? ..changeData = json['changeData'] == null ? null : ChangeData.fromJson(json['changeData'] as Map) ..paySum = json['paySum'] as String?; Map _$PopularSalesToJson(PopularSales instance) => { '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 json) => DashMemberList() ..id = json['id'] as String? ..name = json['name'] as String? ..phone = json['phone'] as String? ..balance = json['balance'] as String?; Map _$DashMemberListToJson(DashMemberList instance) => { 'id': instance.id, 'name': instance.name, 'phone': instance.phone, 'balance': instance.balance, }; SaleProductList _$SaleProductListFromJson(Map json) => SaleProductList() ..productId = json['product_id'] as String? ..saleNum = (json['saleNum'] as num?)?.toInt() ..productName = json['product_name'] as String?; Map _$SaleProductListToJson(SaleProductList instance) => { 'product_id': instance.productId, 'saleNum': instance.saleNum, 'product_name': instance.productName, }; ChangeData _$ChangeDataFromJson(Map 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 _$ChangeDataToJson(ChangeData instance) => { '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, };