import 'package:huixiang/generated/json/base/json_field.dart'; import 'package:huixiang/generated/json/ticket_stats.g.dart'; import 'dart:convert'; export 'package:huixiang/generated/json/ticket_stats.g.dart'; @JsonSerializable() class TicketStats { String? wipedDate = ''; List? infoList = []; TicketStats(); factory TicketStats.fromJson(Map json) => $TicketStatsFromJson(json); Map toJson() => $TicketStatsToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class InfoList { String? ticketName = ''; String? ticketItemName = ''; int? wipedNumber = 0; InfoList(); factory InfoList.fromJson(Map json) => $InfoListFromJson(json); Map toJson() => $InfoListToJson(this); @override String toString() { return jsonEncode(this); } }