import 'package:json_annotation/json_annotation.dart'; part 'trade_summary.g.dart'; @JsonSerializable(explicitToJson: true) class TradeSummary { List? saleBusinessAnalysisVOS = []; String? collectionAmount = ''; int? collectionCount = 0; String? refundAmount = ''; int? refundCount = 0; TradeSummary(); factory TradeSummary.fromJson(Map json) => _$TradeSummaryFromJson(json); Map toJson() => _$TradeSummaryToJson(this); } @JsonSerializable(explicitToJson: true) class SaleBusinessAnalysisVOS { String? localDateTime = ''; String? localDateBigDecimal = ''; String? localDateCount = ''; SaleBusinessAnalysisVOS(); factory SaleBusinessAnalysisVOS.fromJson(Map json) => _$SaleBusinessAnalysisVOSFromJson(json); Map toJson() => _$SaleBusinessAnalysisVOSToJson(this); }