import 'package:huixiang/data/ticket.dart'; import 'package:huixiang/data/ticket_item.dart'; import 'package:json_annotation/json_annotation.dart'; part 'ticket_record.g.dart'; @JsonSerializable(explicitToJson: true) class TicketRecord { String? id = ''; String? createTime = ''; String? createUser = ''; String? updateTime = ''; String? updateUser = ''; String? ticketId = ''; String? ticketCode = ''; String? ticketName = ''; List? ticketItemIds = []; String? finishTime = ''; String? wipedUserId = ''; String? wipedUserName = ''; String? wipedStoreId = ''; int? isDelete = 0; String? tenantCode = ''; Ticket? ticket; List? ticketItems = []; dynamic userName; dynamic userAvatar; dynamic userPhone; TicketRecord(); factory TicketRecord.fromJson(Map json) => _$TicketRecordFromJson(json); Map toJson() => _$TicketRecordToJson(this); }