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.
59 lines
2.4 KiB
59 lines
2.4 KiB
// GENERATED CODE - DO NOT MODIFY BY HAND |
|
|
|
part of 'ticket_record.dart'; |
|
|
|
// ************************************************************************** |
|
// JsonSerializableGenerator |
|
// ************************************************************************** |
|
|
|
TicketRecord _$TicketRecordFromJson(Map<String, dynamic> 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<dynamic>?) |
|
?.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<String, dynamic>) |
|
..ticketItems = (json['ticketItems'] as List<dynamic>?) |
|
?.map((e) => TicketItems.fromJson(e as Map<String, dynamic>)) |
|
.toList() |
|
..userName = json['userName'] |
|
..userAvatar = json['userAvatar'] |
|
..userPhone = json['userPhone']; |
|
|
|
Map<String, dynamic> _$TicketRecordToJson(TicketRecord instance) => |
|
<String, dynamic>{ |
|
'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, |
|
};
|
|
|