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.

110 lines
4.7 KiB

/// saleBusinessAnalysisVOS : [{"localDateTime":"2023-08-29 00:00:00","localDateBigDecimal":"22.00","localDateCount":"1"},{"localDateTime":"2023-08-13 00:00:00","localDateBigDecimal":"12.00","localDateCount":"1"},{"localDateTime":"2023-08-12 00:00:00","localDateBigDecimal":"485.00","localDateCount":"23"},{"localDateTime":"2023-08-11 00:00:00","localDateBigDecimal":"1105.00","localDateCount":"40"},{"localDateTime":"2023-08-10 00:00:00","localDateBigDecimal":"720.00","localDateCount":"28"},{"localDateTime":"2023-08-09 00:00:00","localDateBigDecimal":"311.50","localDateCount":"26"},{"localDateTime":"2023-08-08 00:00:00","localDateBigDecimal":"273.50","localDateCount":"18"},{"localDateTime":"2023-08-07 00:00:00","localDateBigDecimal":"411.00","localDateCount":"19"},{"localDateTime":"2023-08-06 00:00:00","localDateBigDecimal":"26.00","localDateCount":"4"},{"localDateTime":"2023-08-05 00:00:00","localDateBigDecimal":"131.00","localDateCount":"6"},{"localDateTime":"2023-08-04 00:00:00","localDateBigDecimal":"53.00","localDateCount":"4"},{"localDateTime":"2023-08-01 00:00:00","localDateBigDecimal":"442.00","localDateCount":"3"}]
/// collectionAmount : "2816.00"
/// collectionCount : 173
/// refundAmount : "0"
/// refundCount : 0
class TradeSummaryList {
TradeSummaryList({
List<SaleBusinessAnalysisVos> saleBusinessAnalysisVOS,
String collectionAmount,
num collectionCount,
String refundAmount,
num refundCount,}){
_saleBusinessAnalysisVOS = saleBusinessAnalysisVOS;
_collectionAmount = collectionAmount;
_collectionCount = collectionCount;
_refundAmount = refundAmount;
_refundCount = refundCount;
}
TradeSummaryList.fromJson(dynamic json) {
if (json['saleBusinessAnalysisVOS'] != null) {
_saleBusinessAnalysisVOS = [];
json['saleBusinessAnalysisVOS'].forEach((v) {
_saleBusinessAnalysisVOS.add(SaleBusinessAnalysisVos.fromJson(v));
});
}
_collectionAmount = json['collectionAmount'];
_collectionCount = json['collectionCount'];
_refundAmount = json['refundAmount'];
_refundCount = json['refundCount'];
}
List<SaleBusinessAnalysisVos> _saleBusinessAnalysisVOS;
String _collectionAmount;
num _collectionCount;
String _refundAmount;
num _refundCount;
TradeSummaryList copyWith({ List<SaleBusinessAnalysisVos> saleBusinessAnalysisVOS,
String collectionAmount,
num collectionCount,
String refundAmount,
num refundCount,
}) => TradeSummaryList( saleBusinessAnalysisVOS: saleBusinessAnalysisVOS ?? _saleBusinessAnalysisVOS,
collectionAmount: collectionAmount ?? _collectionAmount,
collectionCount: collectionCount ?? _collectionCount,
refundAmount: refundAmount ?? _refundAmount,
refundCount: refundCount ?? _refundCount,
);
List<SaleBusinessAnalysisVos> get saleBusinessAnalysisVOS => _saleBusinessAnalysisVOS;
String get collectionAmount => _collectionAmount;
num get collectionCount => _collectionCount;
String get refundAmount => _refundAmount;
num get refundCount => _refundCount;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
if (_saleBusinessAnalysisVOS != null) {
map['saleBusinessAnalysisVOS'] = _saleBusinessAnalysisVOS.map((v) => v.toJson()).toList();
}
map['collectionAmount'] = _collectionAmount;
map['collectionCount'] = _collectionCount;
map['refundAmount'] = _refundAmount;
map['refundCount'] = _refundCount;
return map;
}
}
/// localDateTime : "2023-08-29 00:00:00"
/// localDateBigDecimal : "22.00"
/// localDateCount : "1"
class SaleBusinessAnalysisVos {
SaleBusinessAnalysisVos({
String localDateTime,
String localDateBigDecimal,
String localDateCount,}){
_localDateTime = localDateTime;
_localDateBigDecimal = localDateBigDecimal;
_localDateCount = localDateCount;
}
SaleBusinessAnalysisVos.fromJson(dynamic json) {
_localDateTime = json['localDateTime'];
_localDateBigDecimal = json['localDateBigDecimal'];
_localDateCount = json['localDateCount'];
}
String _localDateTime;
String _localDateBigDecimal;
String _localDateCount;
SaleBusinessAnalysisVos copyWith({ String localDateTime,
String localDateBigDecimal,
String localDateCount,
}) => SaleBusinessAnalysisVos( localDateTime: localDateTime ?? _localDateTime,
localDateBigDecimal: localDateBigDecimal ?? _localDateBigDecimal,
localDateCount: localDateCount ?? _localDateCount,
);
String get localDateTime => _localDateTime;
String get localDateBigDecimal => _localDateBigDecimal;
String get localDateCount => _localDateCount;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['localDateTime'] = _localDateTime;
map['localDateBigDecimal'] = _localDateBigDecimal;
map['localDateCount'] = _localDateCount;
return map;
}
}