// GENERATED CODE - DO NOT MODIFY BY HAND part of 'ticket_record.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** TicketRecord _$TicketRecordFromJson(Map json) => TicketRecord() ..id = json['id'] as String? ..createTime = json['createTime'] as String? ..createUser = json['createUser'] as String? ..updateTime = json['updateTime'] as String? ..updateUser = json['updateUser'] as String? ..ticketId = json['ticketId'] as String? ..ticketCode = json['ticketCode'] as String? ..ticketName = json['ticketName'] as String? ..ticketItemIds = (json['ticketItemIds'] as List?) ?.map((e) => e as String) .toList() ..finishTime = json['finishTime'] as String? ..wipedUserId = json['wipedUserId'] as String? ..wipedUserName = json['wipedUserName'] as String? ..wipedStoreId = json['wipedStoreId'] as String? ..isDelete = (json['isDelete'] as num?)?.toInt() ..tenantCode = json['tenantCode'] as String? ..ticket = json['ticket'] == null ? null : Ticket.fromJson(json['ticket'] as Map) ..ticketItems = (json['ticketItems'] as List?) ?.map((e) => TicketItems.fromJson(e as Map)) .toList() ..userName = json['userName'] ..userAvatar = json['userAvatar'] ..userPhone = json['userPhone']; Map _$TicketRecordToJson(TicketRecord instance) => { 'id': instance.id, 'createTime': instance.createTime, 'createUser': instance.createUser, 'updateTime': instance.updateTime, 'updateUser': instance.updateUser, 'ticketId': instance.ticketId, 'ticketCode': instance.ticketCode, 'ticketName': instance.ticketName, 'ticketItemIds': instance.ticketItemIds, 'finishTime': instance.finishTime, 'wipedUserId': instance.wipedUserId, 'wipedUserName': instance.wipedUserName, 'wipedStoreId': instance.wipedStoreId, 'isDelete': instance.isDelete, 'tenantCode': instance.tenantCode, 'ticket': instance.ticket?.toJson(), 'ticketItems': instance.ticketItems?.map((e) => e.toJson()).toList(), 'userName': instance.userName, 'userAvatar': instance.userAvatar, 'userPhone': instance.userPhone, };