/// dashMemberList : [{"id":"1645357356843794432","name":"哈哈哈","phone":"15623342902","balance":"817.21"},{"id":"1688728183219683328","name":"","phone":"17612711844","balance":"470.00"},{"id":"1693535584301088768","name":"西瓜太郎","phone":"18716285488","balance":"104.00"},{"id":"1645691116772655104","name":"丙阳测试环境","phone":"15827991714","balance":"0.88"},{"id":"1645348000345620480","name":"璇","phone":"15871490290","balance":"0.02"},{"id":"1685233051375763456","name":"","phone":"18672789329","balance":"0.00"},{"id":"1696812803165257728","name":"","phone":"15723456545","balance":"0.00"},{"id":"1652214301991108608","name":"","phone":"18573164593","balance":"0.00"},{"id":"1646037740963233792","name":"","phone":"13517240850","balance":"0.00"},{"id":"1650818734501134336","name":"","phone":"15172398708","balance":"0.00"},{"id":"1652493162733633536","name":"","phone":"15013675571","balance":"0.00"},{"id":"1646067749123784704","name":"","phone":"13720233327","balance":"0.00"}] /// saleProductList : [{"product_id":"1646055704735252480","saleNum":12,"product_name":"香蕉牛乳"},{"product_id":"1645714721178910720","saleNum":8,"product_name":"红薯牛乳"},{"product_id":"1645991124428390400","saleNum":3,"product_name":"南瓜牛乳"},{"product_id":"1645722834221137920","saleNum":3,"product_name":"原味豆腐"},{"product_id":"1645992331242897408","saleNum":3,"product_name":"炸鲜香菇"},{"product_id":"1646449156648075264","saleNum":2,"product_name":"桑葚牛乳"},{"product_id":"1645724097411284992","saleNum":2,"product_name":"泡菜"},{"product_id":"1646449942484484096","saleNum":1,"product_name":"芒果牛乳"},{"product_id":"1645667029320990720","saleNum":1,"product_name":"木瓜牛奶"},{"product_id":"1645732366896857088","saleNum":1,"product_name":"酱烤玉米"}] /// avgPrice : "11.43" /// orderNum : 21 /// storeDailyStatistics : [] /// orderSum : "259.04" /// changeData : {"addCartChangeRate":0.0,"payCountChangeRate":0.0,"sumAddCartCount":"0","sumSettleCount":"0","sumPaySuccessCount":"0","sumPV":"0","totalChangeRate":0.0,"sumPayCount":"0","settleChangeRate":0.0,"paySuccessChangeRate":0.0} /// paySum : "240.00" class PopularSalesList { PopularSalesList({ List dashMemberList, List saleProductList, String avgPrice, num orderNum, // List storeDailyStatistics, String orderSum, ChangeData changeData, String paySum,}){ _dashMemberList = dashMemberList; _saleProductList = saleProductList; _avgPrice = avgPrice; _orderNum = orderNum; // _storeDailyStatistics = storeDailyStatistics; _orderSum = orderSum; _changeData = changeData; _paySum = paySum; } PopularSalesList.fromJson(dynamic json) { if (json['dashMemberList'] != null) { _dashMemberList = []; json['dashMemberList'].forEach((v) { _dashMemberList.add(DashMemberList.fromJson(v)); }); } if (json['saleProductList'] != null) { _saleProductList = []; json['saleProductList'].forEach((v) { _saleProductList.add(SaleProductList.fromJson(v)); }); } _avgPrice = json['avgPrice']; _orderNum = json['orderNum']; // if (json['storeDailyStatistics'] != null) { // _storeDailyStatistics = []; // json['storeDailyStatistics'].forEach((v) { // _storeDailyStatistics.add(Dynamic.fromJson(v)); // }); // } _orderSum = json['orderSum']; _changeData = json['changeData'] != null ? ChangeData.fromJson(json['changeData']) : null; _paySum = json['paySum']; } List _dashMemberList; List _saleProductList; String _avgPrice; num _orderNum; // List _storeDailyStatistics; String _orderSum; ChangeData _changeData; String _paySum; PopularSalesList copyWith({ List dashMemberList, List saleProductList, String avgPrice, num orderNum, // List storeDailyStatistics, String orderSum, ChangeData changeData, String paySum, }) => PopularSalesList( dashMemberList: dashMemberList ?? _dashMemberList, saleProductList: saleProductList ?? _saleProductList, avgPrice: avgPrice ?? _avgPrice, orderNum: orderNum ?? _orderNum, // storeDailyStatistics: storeDailyStatistics ?? _storeDailyStatistics, orderSum: orderSum ?? _orderSum, changeData: changeData ?? _changeData, paySum: paySum ?? _paySum, ); List get dashMemberList => _dashMemberList; List get saleProductList => _saleProductList; String get avgPrice => _avgPrice; num get orderNum => _orderNum; // List get storeDailyStatistics => _storeDailyStatistics; String get orderSum => _orderSum; ChangeData get changeData => _changeData; String get paySum => _paySum; Map toJson() { final map = {}; if (_dashMemberList != null) { map['dashMemberList'] = _dashMemberList.map((v) => v.toJson()).toList(); } if (_saleProductList != null) { map['saleProductList'] = _saleProductList.map((v) => v.toJson()).toList(); } map['avgPrice'] = _avgPrice; map['orderNum'] = _orderNum; // if (_storeDailyStatistics != null) { // map['storeDailyStatistics'] = _storeDailyStatistics.map((v) => v.toJson()).toList(); // } map['orderSum'] = _orderSum; if (_changeData != null) { map['changeData'] = _changeData.toJson(); } map['paySum'] = _paySum; return map; } } /// addCartChangeRate : 0.0 /// payCountChangeRate : 0.0 /// sumAddCartCount : "0" /// sumSettleCount : "0" /// sumPaySuccessCount : "0" /// sumPV : "0" /// totalChangeRate : 0.0 /// sumPayCount : "0" /// settleChangeRate : 0.0 /// paySuccessChangeRate : 0.0 class ChangeData { ChangeData({ num addCartChangeRate, num payCountChangeRate, String sumAddCartCount, String sumSettleCount, String sumPaySuccessCount, String sumPV, num totalChangeRate, String sumPayCount, num settleChangeRate, num paySuccessChangeRate,}){ _addCartChangeRate = addCartChangeRate; _payCountChangeRate = payCountChangeRate; _sumAddCartCount = sumAddCartCount; _sumSettleCount = sumSettleCount; _sumPaySuccessCount = sumPaySuccessCount; _sumPV = sumPV; _totalChangeRate = totalChangeRate; _sumPayCount = sumPayCount; _settleChangeRate = settleChangeRate; _paySuccessChangeRate = paySuccessChangeRate; } ChangeData.fromJson(dynamic json) { _addCartChangeRate = json['addCartChangeRate']; _payCountChangeRate = json['payCountChangeRate']; _sumAddCartCount = json['sumAddCartCount']; _sumSettleCount = json['sumSettleCount']; _sumPaySuccessCount = json['sumPaySuccessCount']; _sumPV = json['sumPV']; _totalChangeRate = json['totalChangeRate']; _sumPayCount = json['sumPayCount']; _settleChangeRate = json['settleChangeRate']; _paySuccessChangeRate = json['paySuccessChangeRate']; } num _addCartChangeRate; num _payCountChangeRate; String _sumAddCartCount; String _sumSettleCount; String _sumPaySuccessCount; String _sumPV; num _totalChangeRate; String _sumPayCount; num _settleChangeRate; num _paySuccessChangeRate; ChangeData copyWith({ num addCartChangeRate, num payCountChangeRate, String sumAddCartCount, String sumSettleCount, String sumPaySuccessCount, String sumPV, num totalChangeRate, String sumPayCount, num settleChangeRate, num paySuccessChangeRate, }) => ChangeData( addCartChangeRate: addCartChangeRate ?? _addCartChangeRate, payCountChangeRate: payCountChangeRate ?? _payCountChangeRate, sumAddCartCount: sumAddCartCount ?? _sumAddCartCount, sumSettleCount: sumSettleCount ?? _sumSettleCount, sumPaySuccessCount: sumPaySuccessCount ?? _sumPaySuccessCount, sumPV: sumPV ?? _sumPV, totalChangeRate: totalChangeRate ?? _totalChangeRate, sumPayCount: sumPayCount ?? _sumPayCount, settleChangeRate: settleChangeRate ?? _settleChangeRate, paySuccessChangeRate: paySuccessChangeRate ?? _paySuccessChangeRate, ); num get addCartChangeRate => _addCartChangeRate; num get payCountChangeRate => _payCountChangeRate; String get sumAddCartCount => _sumAddCartCount; String get sumSettleCount => _sumSettleCount; String get sumPaySuccessCount => _sumPaySuccessCount; String get sumPV => _sumPV; num get totalChangeRate => _totalChangeRate; String get sumPayCount => _sumPayCount; num get settleChangeRate => _settleChangeRate; num get paySuccessChangeRate => _paySuccessChangeRate; Map toJson() { final map = {}; map['addCartChangeRate'] = _addCartChangeRate; map['payCountChangeRate'] = _payCountChangeRate; map['sumAddCartCount'] = _sumAddCartCount; map['sumSettleCount'] = _sumSettleCount; map['sumPaySuccessCount'] = _sumPaySuccessCount; map['sumPV'] = _sumPV; map['totalChangeRate'] = _totalChangeRate; map['sumPayCount'] = _sumPayCount; map['settleChangeRate'] = _settleChangeRate; map['paySuccessChangeRate'] = _paySuccessChangeRate; return map; } } /// product_id : "1646055704735252480" /// saleNum : 12 /// product_name : "香蕉牛乳" class SaleProductList { SaleProductList({ String productId, num saleNum, String productName,}){ _productId = productId; _saleNum = saleNum; _productName = productName; } SaleProductList.fromJson(dynamic json) { _productId = json['product_id']; _saleNum = json['saleNum']; _productName = json['product_name']; } String _productId; num _saleNum; String _productName; SaleProductList copyWith({ String productId, num saleNum, String productName, }) => SaleProductList( productId: productId ?? _productId, saleNum: saleNum ?? _saleNum, productName: productName ?? _productName, ); String get productId => _productId; num get saleNum => _saleNum; String get productName => _productName; Map toJson() { final map = {}; map['product_id'] = _productId; map['saleNum'] = _saleNum; map['product_name'] = _productName; return map; } } /// id : "1645357356843794432" /// name : "哈哈哈" /// phone : "15623342902" /// balance : "817.21" class DashMemberList { DashMemberList({ String id, String name, String phone, String balance,}){ _id = id; _name = name; _phone = phone; _balance = balance; } DashMemberList.fromJson(dynamic json) { _id = json['id']; _name = json['name']; _phone = json['phone']; _balance = json['balance']; } String _id; String _name; String _phone; String _balance; DashMemberList copyWith({ String id, String name, String phone, String balance, }) => DashMemberList( id: id ?? _id, name: name ?? _name, phone: phone ?? _phone, balance: balance ?? _balance, ); String get id => _id; String get name => _name; String get phone => _phone; String get balance => _balance; Map toJson() { final map = {}; map['id'] = _id; map['name'] = _name; map['phone'] = _phone; map['balance'] = _balance; return map; } }