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.
141 lines
4.4 KiB
141 lines
4.4 KiB
1 year ago
|
/// productId : null
|
||
|
/// saleNum : 16
|
||
|
/// productName : "米粉汤"
|
||
|
/// productType : null
|
||
|
/// productGroupName : "米粉汤"
|
||
|
/// sumPrice : "256.00"
|
||
|
/// sellPrict : "16.00"
|
||
|
/// productSkuName : ""
|
||
|
/// productSkuList : null
|
||
|
/// platterLsit : null
|
||
|
/// giveNum : 0
|
||
|
/// refundNum : 0
|
||
|
/// productCountPercent : 0.11
|
||
|
/// productSellPricePercent : 0.11
|
||
|
|
||
|
class SingleSalesList {
|
||
|
SingleSalesList({
|
||
|
dynamic productId,
|
||
|
num saleNum,
|
||
|
String productName,
|
||
|
dynamic productType,
|
||
|
String productGroupName,
|
||
|
String sumPrice,
|
||
|
String sellPrict,
|
||
|
String productSkuName,
|
||
|
dynamic productSkuList,
|
||
|
dynamic platterLsit,
|
||
|
num giveNum,
|
||
|
num refundNum,
|
||
|
num productCountPercent,
|
||
|
num productSellPricePercent,}){
|
||
|
_productId = productId;
|
||
|
_saleNum = saleNum;
|
||
|
_productName = productName;
|
||
|
_productType = productType;
|
||
|
_productGroupName = productGroupName;
|
||
|
_sumPrice = sumPrice;
|
||
|
_sellPrict = sellPrict;
|
||
|
_productSkuName = productSkuName;
|
||
|
_productSkuList = productSkuList;
|
||
|
_platterLsit = platterLsit;
|
||
|
_giveNum = giveNum;
|
||
|
_refundNum = refundNum;
|
||
|
_productCountPercent = productCountPercent;
|
||
|
_productSellPricePercent = productSellPricePercent;
|
||
|
}
|
||
|
|
||
|
SingleSalesList.fromJson(dynamic json) {
|
||
|
_productId = json['productId'];
|
||
|
_saleNum = json['saleNum'];
|
||
|
_productName = json['productName'];
|
||
|
_productType = json['productType'];
|
||
|
_productGroupName = json['productGroupName'];
|
||
|
_sumPrice = json['sumPrice'];
|
||
|
_sellPrict = json['sellPrict'];
|
||
|
_productSkuName = json['productSkuName'];
|
||
|
_productSkuList = json['productSkuList'];
|
||
|
_platterLsit = json['platterLsit'];
|
||
|
_giveNum = json['giveNum'];
|
||
|
_refundNum = json['refundNum'];
|
||
|
_productCountPercent = json['productCountPercent'];
|
||
|
_productSellPricePercent = json['productSellPricePercent'];
|
||
|
}
|
||
|
dynamic _productId;
|
||
|
num _saleNum;
|
||
|
String _productName;
|
||
|
dynamic _productType;
|
||
|
String _productGroupName;
|
||
|
String _sumPrice;
|
||
|
String _sellPrict;
|
||
|
String _productSkuName;
|
||
|
dynamic _productSkuList;
|
||
|
dynamic _platterLsit;
|
||
|
num _giveNum;
|
||
|
num _refundNum;
|
||
|
num _productCountPercent;
|
||
|
num _productSellPricePercent;
|
||
|
SingleSalesList copyWith({ dynamic productId,
|
||
|
num saleNum,
|
||
|
String productName,
|
||
|
dynamic productType,
|
||
|
String productGroupName,
|
||
|
String sumPrice,
|
||
|
String sellPrict,
|
||
|
String productSkuName,
|
||
|
dynamic productSkuList,
|
||
|
dynamic platterLsit,
|
||
|
num giveNum,
|
||
|
num refundNum,
|
||
|
num productCountPercent,
|
||
|
num productSellPricePercent,
|
||
|
}) => SingleSalesList( productId: productId ?? _productId,
|
||
|
saleNum: saleNum ?? _saleNum,
|
||
|
productName: productName ?? _productName,
|
||
|
productType: productType ?? _productType,
|
||
|
productGroupName: productGroupName ?? _productGroupName,
|
||
|
sumPrice: sumPrice ?? _sumPrice,
|
||
|
sellPrict: sellPrict ?? _sellPrict,
|
||
|
productSkuName: productSkuName ?? _productSkuName,
|
||
|
productSkuList: productSkuList ?? _productSkuList,
|
||
|
platterLsit: platterLsit ?? _platterLsit,
|
||
|
giveNum: giveNum ?? _giveNum,
|
||
|
refundNum: refundNum ?? _refundNum,
|
||
|
productCountPercent: productCountPercent ?? _productCountPercent,
|
||
|
productSellPricePercent: productSellPricePercent ?? _productSellPricePercent,
|
||
|
);
|
||
|
dynamic get productId => _productId;
|
||
|
num get saleNum => _saleNum;
|
||
|
String get productName => _productName;
|
||
|
dynamic get productType => _productType;
|
||
|
String get productGroupName => _productGroupName;
|
||
|
String get sumPrice => _sumPrice;
|
||
|
String get sellPrict => _sellPrict;
|
||
|
String get productSkuName => _productSkuName;
|
||
|
dynamic get productSkuList => _productSkuList;
|
||
|
dynamic get platterLsit => _platterLsit;
|
||
|
num get giveNum => _giveNum;
|
||
|
num get refundNum => _refundNum;
|
||
|
num get productCountPercent => _productCountPercent;
|
||
|
num get productSellPricePercent => _productSellPricePercent;
|
||
|
|
||
|
Map<String, dynamic> toJson() {
|
||
|
final map = <String, dynamic>{};
|
||
|
map['productId'] = _productId;
|
||
|
map['saleNum'] = _saleNum;
|
||
|
map['productName'] = _productName;
|
||
|
map['productType'] = _productType;
|
||
|
map['productGroupName'] = _productGroupName;
|
||
|
map['sumPrice'] = _sumPrice;
|
||
|
map['sellPrict'] = _sellPrict;
|
||
|
map['productSkuName'] = _productSkuName;
|
||
|
map['productSkuList'] = _productSkuList;
|
||
|
map['platterLsit'] = _platterLsit;
|
||
|
map['giveNum'] = _giveNum;
|
||
|
map['refundNum'] = _refundNum;
|
||
|
map['productCountPercent'] = _productCountPercent;
|
||
|
map['productSellPricePercent'] = _productSellPricePercent;
|
||
|
return map;
|
||
|
}
|
||
|
|
||
|
}
|