import 'package:json_annotation/json_annotation.dart'; part 'ticket.g.dart'; @JsonSerializable(explicitToJson: true) class Ticket { String? id = ''; String? createTime = ''; String? createUser = ''; String? updateTime = ''; String? updateUser = ''; String? mid = ''; String? storeId = ''; String? orderId = ''; String? orderProductId = ''; String? productId = ''; String? productSkuId = ''; String? ticketWipedTimeTemplateId = ''; String? amount = ''; String? name = ''; String? code = ''; String? useStartTime = ''; String? useEndTime = ''; String? finishTime = ''; String? type = ''; dynamic source; dynamic takeType; String? style = ''; int? state = 0; bool? canSettlement = false; bool? canSubscribe = false; int? isDelete = 0; String? tenantCode = ''; Ticket(); factory Ticket.fromJson(Map json) => _$TicketFromJson(json); Map toJson() => _$TicketToJson(this); }