diff --git a/lib/generated/json/invoices_history_list_entity.g.dart b/lib/generated/json/invoices_history_list_entity.g.dart deleted file mode 100644 index 54ceb36d..00000000 --- a/lib/generated/json/invoices_history_list_entity.g.dart +++ /dev/null @@ -1,323 +0,0 @@ -import 'package:huixiang/generated/json/base/json_convert_content.dart'; -import 'package:huixiang/data/invoices_history_list_entity.dart'; - -InvoicesHistoryListEntity $InvoicesHistoryListEntityFromJson( - Map json) { - final InvoicesHistoryListEntity invoicesHistoryListEntity = InvoicesHistoryListEntity(); - final List? records = (json['records'] as List< - dynamic>?)?.map( - (e) => - jsonConvert.convert( - e) as InvoicesHistoryListRecords).toList(); - if (records != null) { - invoicesHistoryListEntity.records = records; - } - final String? total = jsonConvert.convert(json['total']); - if (total != null) { - invoicesHistoryListEntity.total = total; - } - final String? size = jsonConvert.convert(json['size']); - if (size != null) { - invoicesHistoryListEntity.size = size; - } - final String? current = jsonConvert.convert(json['current']); - if (current != null) { - invoicesHistoryListEntity.current = current; - } - final List? orders = (json['orders'] as List< - dynamic>?)?.map( - (e) => - jsonConvert.convert( - e) as InvoicesHistoryListOrders).toList(); - if (orders != null) { - invoicesHistoryListEntity.orders = orders; - } - final bool? hitCount = jsonConvert.convert(json['hitCount']); - if (hitCount != null) { - invoicesHistoryListEntity.hitCount = hitCount; - } - final bool? searchCount = jsonConvert.convert(json['searchCount']); - if (searchCount != null) { - invoicesHistoryListEntity.searchCount = searchCount; - } - final String? pages = jsonConvert.convert(json['pages']); - if (pages != null) { - invoicesHistoryListEntity.pages = pages; - } - return invoicesHistoryListEntity; -} - -Map $InvoicesHistoryListEntityToJson( - InvoicesHistoryListEntity entity) { - final Map data = {}; - data['records'] = entity.records?.map((v) => v.toJson()).toList(); - data['total'] = entity.total; - data['size'] = entity.size; - data['current'] = entity.current; - data['orders'] = entity.orders?.map((v) => v.toJson()).toList(); - data['hitCount'] = entity.hitCount; - data['searchCount'] = entity.searchCount; - data['pages'] = entity.pages; - return data; -} - -extension InvoicesHistoryListEntityExtension on InvoicesHistoryListEntity { - InvoicesHistoryListEntity copyWith({ - List? records, - String? total, - String? size, - String? current, - List? orders, - bool? hitCount, - bool? searchCount, - String? pages, - }) { - return InvoicesHistoryListEntity() - ..records = records ?? this.records - ..total = total ?? this.total - ..size = size ?? this.size - ..current = current ?? this.current - ..orders = orders ?? this.orders - ..hitCount = hitCount ?? this.hitCount - ..searchCount = searchCount ?? this.searchCount - ..pages = pages ?? this.pages; - } -} - -InvoicesHistoryListRecords $InvoicesHistoryListRecordsFromJson( - Map json) { - final InvoicesHistoryListRecords invoicesHistoryListRecords = InvoicesHistoryListRecords(); - final String? id = jsonConvert.convert(json['id']); - if (id != null) { - invoicesHistoryListRecords.id = id; - } - final String? createTime = jsonConvert.convert(json['createTime']); - if (createTime != null) { - invoicesHistoryListRecords.createTime = createTime; - } - final String? createUser = jsonConvert.convert(json['createUser']); - if (createUser != null) { - invoicesHistoryListRecords.createUser = createUser; - } - final String? updateTime = jsonConvert.convert(json['updateTime']); - if (updateTime != null) { - invoicesHistoryListRecords.updateTime = updateTime; - } - final String? updateUser = jsonConvert.convert(json['updateUser']); - if (updateUser != null) { - invoicesHistoryListRecords.updateUser = updateUser; - } - final String? phone = jsonConvert.convert(json['phone']); - if (phone != null) { - invoicesHistoryListRecords.phone = phone; - } - final String? receivingPhone = jsonConvert.convert( - json['receivingPhone']); - if (receivingPhone != null) { - invoicesHistoryListRecords.receivingPhone = receivingPhone; - } - final String? mid = jsonConvert.convert(json['mid']); - if (mid != null) { - invoicesHistoryListRecords.mid = mid; - } - final List? orderIds = (json['orderIds'] as List?)?.map( - (e) => jsonConvert.convert(e) as String).toList(); - if (orderIds != null) { - invoicesHistoryListRecords.orderIds = orderIds; - } - final String? money = jsonConvert.convert(json['money']); - if (money != null) { - invoicesHistoryListRecords.money = money; - } - final String? type = jsonConvert.convert(json['type']); - if (type != null) { - invoicesHistoryListRecords.type = type; - } - final String? headerId = jsonConvert.convert(json['headerId']); - if (headerId != null) { - invoicesHistoryListRecords.headerId = headerId; - } - final String? state = jsonConvert.convert(json['state']); - if (state != null) { - invoicesHistoryListRecords.state = state; - } - final dynamic reviewerTime = json['reviewerTime']; - if (reviewerTime != null) { - invoicesHistoryListRecords.reviewerTime = reviewerTime; - } - final String? reviewerBy = jsonConvert.convert(json['reviewerBy']); - if (reviewerBy != null) { - invoicesHistoryListRecords.reviewerBy = reviewerBy; - } - final dynamic ossUrl = json['ossUrl']; - if (ossUrl != null) { - invoicesHistoryListRecords.ossUrl = ossUrl; - } - final String? reason = jsonConvert.convert(json['reason']); - if (reason != null) { - invoicesHistoryListRecords.reason = reason; - } - final int? isDelete = jsonConvert.convert(json['isDelete']); - if (isDelete != null) { - invoicesHistoryListRecords.isDelete = isDelete; - } - final String? invoiceHeaderName = jsonConvert.convert( - json['invoiceHeaderName']); - if (invoiceHeaderName != null) { - invoicesHistoryListRecords.invoiceHeaderName = invoiceHeaderName; - } - final String? invoiceHeaderCode = jsonConvert.convert( - json['invoiceHeaderCode']); - if (invoiceHeaderCode != null) { - invoicesHistoryListRecords.invoiceHeaderCode = invoiceHeaderCode; - } - final dynamic orderList = json['orderList']; - if (orderList != null) { - invoicesHistoryListRecords.orderList = orderList; - } - final dynamic headertype = json['headertype']; - if (headertype != null) { - invoicesHistoryListRecords.headertype = headertype; - } - final dynamic companyAddr = json['companyAddr']; - if (companyAddr != null) { - invoicesHistoryListRecords.companyAddr = companyAddr; - } - final dynamic companyPhone = json['companyPhone']; - if (companyPhone != null) { - invoicesHistoryListRecords.companyPhone = companyPhone; - } - final dynamic bank = json['bank']; - if (bank != null) { - invoicesHistoryListRecords.bank = bank; - } - final dynamic bankNumber = json['bankNumber']; - if (bankNumber != null) { - invoicesHistoryListRecords.bankNumber = bankNumber; - } - return invoicesHistoryListRecords; -} - -Map $InvoicesHistoryListRecordsToJson( - InvoicesHistoryListRecords entity) { - final Map data = {}; - data['id'] = entity.id; - data['createTime'] = entity.createTime; - data['createUser'] = entity.createUser; - data['updateTime'] = entity.updateTime; - data['updateUser'] = entity.updateUser; - data['phone'] = entity.phone; - data['receivingPhone'] = entity.receivingPhone; - data['mid'] = entity.mid; - data['orderIds'] = entity.orderIds; - data['money'] = entity.money; - data['type'] = entity.type; - data['headerId'] = entity.headerId; - data['state'] = entity.state; - data['reviewerTime'] = entity.reviewerTime; - data['reviewerBy'] = entity.reviewerBy; - data['ossUrl'] = entity.ossUrl; - data['reason'] = entity.reason; - data['isDelete'] = entity.isDelete; - data['invoiceHeaderName'] = entity.invoiceHeaderName; - data['invoiceHeaderCode'] = entity.invoiceHeaderCode; - data['orderList'] = entity.orderList; - data['headertype'] = entity.headertype; - data['companyAddr'] = entity.companyAddr; - data['companyPhone'] = entity.companyPhone; - data['bank'] = entity.bank; - data['bankNumber'] = entity.bankNumber; - return data; -} - -extension InvoicesHistoryListRecordsExtension on InvoicesHistoryListRecords { - InvoicesHistoryListRecords copyWith({ - String? id, - String? createTime, - String? createUser, - String? updateTime, - String? updateUser, - String? phone, - String? receivingPhone, - String? mid, - List? orderIds, - String? money, - String? type, - String? headerId, - String? state, - dynamic reviewerTime, - String? reviewerBy, - dynamic ossUrl, - String? reason, - int? isDelete, - String? invoiceHeaderName, - String? invoiceHeaderCode, - dynamic orderList, - dynamic headertype, - dynamic companyAddr, - dynamic companyPhone, - dynamic bank, - dynamic bankNumber, - }) { - return InvoicesHistoryListRecords() - ..id = id ?? this.id - ..createTime = createTime ?? this.createTime - ..createUser = createUser ?? this.createUser - ..updateTime = updateTime ?? this.updateTime - ..updateUser = updateUser ?? this.updateUser - ..phone = phone ?? this.phone - ..receivingPhone = receivingPhone ?? this.receivingPhone - ..mid = mid ?? this.mid - ..orderIds = orderIds ?? this.orderIds - ..money = money ?? this.money - ..type = type ?? this.type - ..headerId = headerId ?? this.headerId - ..state = state ?? this.state - ..reviewerTime = reviewerTime ?? this.reviewerTime - ..reviewerBy = reviewerBy ?? this.reviewerBy - ..ossUrl = ossUrl ?? this.ossUrl - ..reason = reason ?? this.reason - ..isDelete = isDelete ?? this.isDelete - ..invoiceHeaderName = invoiceHeaderName ?? this.invoiceHeaderName - ..invoiceHeaderCode = invoiceHeaderCode ?? this.invoiceHeaderCode - ..orderList = orderList ?? this.orderList - ..headertype = headertype ?? this.headertype - ..companyAddr = companyAddr ?? this.companyAddr - ..companyPhone = companyPhone ?? this.companyPhone - ..bank = bank ?? this.bank - ..bankNumber = bankNumber ?? this.bankNumber; - } -} - -InvoicesHistoryListOrders $InvoicesHistoryListOrdersFromJson( - Map json) { - final InvoicesHistoryListOrders invoicesHistoryListOrders = InvoicesHistoryListOrders(); - final String? column = jsonConvert.convert(json['column']); - if (column != null) { - invoicesHistoryListOrders.column = column; - } - final bool? asc = jsonConvert.convert(json['asc']); - if (asc != null) { - invoicesHistoryListOrders.asc = asc; - } - return invoicesHistoryListOrders; -} - -Map $InvoicesHistoryListOrdersToJson( - InvoicesHistoryListOrders entity) { - final Map data = {}; - data['column'] = entity.column; - data['asc'] = entity.asc; - return data; -} - -extension InvoicesHistoryListOrdersExtension on InvoicesHistoryListOrders { - InvoicesHistoryListOrders copyWith({ - String? column, - bool? asc, - }) { - return InvoicesHistoryListOrders() - ..column = column ?? this.column - ..asc = asc ?? this.asc; - } -} \ No newline at end of file