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.
32 lines
672 B
32 lines
672 B
1 month ago
|
import 'package:json_annotation/json_annotation.dart';
|
||
|
|
||
|
part 'ticket_stats.g.dart';
|
||
|
|
||
|
@JsonSerializable(explicitToJson: true)
|
||
|
class TicketStats {
|
||
|
String? wipedDate = '';
|
||
|
List<InfoList>? infoList = [];
|
||
|
|
||
|
TicketStats();
|
||
|
|
||
|
factory TicketStats.fromJson(Map<String, dynamic> json) => _$TicketStatsFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => _$TicketStatsToJson(this);
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
@JsonSerializable(explicitToJson: true)
|
||
|
class InfoList {
|
||
|
String? ticketName = '';
|
||
|
String? ticketItemName = '';
|
||
|
int? wipedNumber = 0;
|
||
|
|
||
|
InfoList();
|
||
|
|
||
|
factory InfoList.fromJson(Map<String, dynamic> json) => _$InfoListFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => _$InfoListToJson(this);
|
||
|
|
||
|
|
||
|
}
|