import 'package:json_annotation/json_annotation.dart'; part 'ticket_stats.g.dart'; @JsonSerializable(explicitToJson: true) class TicketStats { String? wipedDate = ''; List? infoList = []; TicketStats(); factory TicketStats.fromJson(Map json) => _$TicketStatsFromJson(json); Map toJson() => _$TicketStatsToJson(this); } @JsonSerializable(explicitToJson: true) class InfoList { String? ticketName = ''; String? ticketItemName = ''; int? wipedNumber = 0; InfoList(); factory InfoList.fromJson(Map json) => _$InfoListFromJson(json); Map toJson() => _$InfoListToJson(this); }