/// records : [{"id":"1745006589485514752","createTime":"2024-01-10 16:56:06","createUser":"1739884285034233856","updateTime":"2024-01-11 07:51:48","updateUser":"1739884285034233856","tenantId":"1739884282001752064","tenantCode":"1197","packageId":"1743090505270427648","oldPackageId":"1742842291845857280","packagePrice":"0.01","packageNum":1,"packageDiscount":100,"expirationTime":"2025-01-10 16:56:06","upgradeTime":null,"status":0,"payChannel":1,"isDelete":0,"packageName":"品牌商户"},{"id":"1745002175626477568","createTime":"2024-01-10 16:38:34","createUser":"1739884285034233856","updateTime":"2024-01-11 07:51:47","updateUser":"1739884285034233856","tenantId":"1739884282001752064","tenantCode":"1197","packageId":"1742842291845857280","oldPackageId":null,"packagePrice":"200.00","packageNum":10,"packageDiscount":100,"expirationTime":"2049-09-11 15:39:12","upgradeTime":null,"status":0,"payChannel":1,"isDelete":0,"packageName":"普通商户"},{"id":"1744984806560628736","createTime":"2024-01-10 15:29:33","createUser":"1739884285034233856","updateTime":"2024-01-11 07:51:46","updateUser":"1739884285034233856","tenantId":"1739884282001752064","tenantCode":"1197","packageId":"1743090505270427648","oldPackageId":null,"packagePrice":"0.01","packageNum":2,"packageDiscount":100,"expirationTime":"2030-01-10 14:23:37","upgradeTime":null,"status":1,"payChannel":1,"isDelete":0,"packageName":"品牌商户"},{"id":"1744983525037178880","createTime":"2024-01-10 15:24:27","createUser":"1739884285034233856","updateTime":"2024-01-11 07:51:46","updateUser":"1739884285034233856","tenantId":"1739884282001752064","tenantCode":"1197","packageId":"1743090505270427648","oldPackageId":null,"packagePrice":"0.01","packageNum":3,"packageDiscount":100,"expirationTime":"2028-01-10 14:23:37","upgradeTime":null,"status":1,"payChannel":1,"isDelete":0,"packageName":"品牌商户"},{"id":"1744968216842600448","createTime":"2024-01-10 14:23:37","createUser":"1739884285034233856","updateTime":"2024-01-11 07:51:45","updateUser":"1739884285034233856","tenantId":"1739884282001752064","tenantCode":"1197","packageId":"1743090505270427648","oldPackageId":"1742842291845857280","packagePrice":"0.01","packageNum":1,"packageDiscount":100,"expirationTime":"2025-01-10 14:23:37","upgradeTime":null,"status":1,"payChannel":1,"isDelete":0,"packageName":"品牌商户"},{"id":"1744965441966571520","createTime":"2024-01-10 14:12:36","createUser":"1739884285034233856","updateTime":"2024-01-11 07:51:44","updateUser":"1739884285034233856","tenantId":"1739884282001752064","tenantCode":"1197","packageId":"1742842291845857280","oldPackageId":null,"packagePrice":"0.01","packageNum":10,"packageDiscount":100,"expirationTime":"2030-01-10 18:00:00","upgradeTime":"2024-01-10 16:56:05","status":3,"payChannel":1,"isDelete":0,"packageName":"普通商户"},{"id":"1744965184633438208","createTime":"2024-01-10 14:11:35","createUser":"1739884285034233856","updateTime":"2024-01-11 07:51:44","updateUser":"1739884285034233856","tenantId":"1739884282001752064","tenantCode":"1197","packageId":"1742842291845857280","oldPackageId":null,"packagePrice":"0.01","packageNum":5,"packageDiscount":100,"expirationTime":"2027-01-10 18:00:00","upgradeTime":"2024-01-10 16:38:57","status":3,"payChannel":1,"isDelete":0,"packageName":"普通商户"},{"id":"1744965083273887744","createTime":"2024-01-10 14:11:10","createUser":"1739884285034233856","updateTime":"2024-01-11 07:51:43","updateUser":"1739884285034233856","tenantId":"1739884282001752064","tenantCode":"1197","packageId":"1742842291845857280","oldPackageId":null,"packagePrice":"0.01","packageNum":1,"packageDiscount":100,"expirationTime":"2025-01-10 18:00:00","upgradeTime":"2024-05-10 18:00:00","status":3,"payChannel":1,"isDelete":0,"packageName":"普通商户"}] /// total : "8" /// size : "10" /// current : "1" /// orders : [{"column":"create_time","asc":false}] /// hitCount : false /// searchCount : true /// pages : "1" class ServiceBugList { ServiceBugList({ List records, String total, String size, String current, List orders, bool hitCount, bool searchCount, String pages,}){ _records = records; _total = total; _size = size; _current = current; _orders = orders; _hitCount = hitCount; _searchCount = searchCount; _pages = pages; } ServiceBugList.fromJson(dynamic json) { if (json['records'] != null) { _records = []; json['records'].forEach((v) { _records.add(Records.fromJson(v)); }); } _total = json['total']; _size = json['size']; _current = json['current']; if (json['orders'] != null) { _orders = []; json['orders'].forEach((v) { _orders.add(Orders.fromJson(v)); }); } _hitCount = json['hitCount']; _searchCount = json['searchCount']; _pages = json['pages']; } List _records; String _total; String _size; String _current; List _orders; bool _hitCount; bool _searchCount; String _pages; ServiceBugList copyWith({ List records, String total, String size, String current, List orders, bool hitCount, bool searchCount, String pages, }) => ServiceBugList( records: records ?? _records, total: total ?? _total, size: size ?? _size, current: current ?? _current, orders: orders ?? _orders, hitCount: hitCount ?? _hitCount, searchCount: searchCount ?? _searchCount, pages: pages ?? _pages, ); List get records => _records; String get total => _total; String get size => _size; String get current => _current; List get orders => _orders; bool get hitCount => _hitCount; bool get searchCount => _searchCount; String get pages => _pages; Map toJson() { final map = {}; if (_records != null) { map['records'] = _records.map((v) => v.toJson()).toList(); } map['total'] = _total; map['size'] = _size; map['current'] = _current; if (_orders != null) { map['orders'] = _orders.map((v) => v.toJson()).toList(); } map['hitCount'] = _hitCount; map['searchCount'] = _searchCount; map['pages'] = _pages; return map; } } /// column : "create_time" /// asc : false class Orders { Orders({ String column, bool asc,}){ _column = column; _asc = asc; } Orders.fromJson(dynamic json) { _column = json['column']; _asc = json['asc']; } String _column; bool _asc; Orders copyWith({ String column, bool asc, }) => Orders( column: column ?? _column, asc: asc ?? _asc, ); String get column => _column; bool get asc => _asc; Map toJson() { final map = {}; map['column'] = _column; map['asc'] = _asc; return map; } } /// id : "1745006589485514752" /// createTime : "2024-01-10 16:56:06" /// createUser : "1739884285034233856" /// updateTime : "2024-01-11 07:51:48" /// updateUser : "1739884285034233856" /// tenantId : "1739884282001752064" /// tenantCode : "1197" /// packageId : "1743090505270427648" /// oldPackageId : "1742842291845857280" /// packagePrice : "0.01" /// packageNum : 1 /// packageDiscount : 100 /// expirationTime : "2025-01-10 16:56:06" /// upgradeTime : null /// status : 0 /// payChannel : 1 /// isDelete : 0 /// packageName : "品牌商户" class Records { Records({ String id, String createTime, String createUser, String updateTime, String updateUser, String tenantId, String tenantCode, String packageId, String oldPackageId, String packagePrice, num packageNum, num packageDiscount, String expirationTime, dynamic upgradeTime, num status, num payChannel, num isDelete, String packageName,}){ _id = id; _createTime = createTime; _createUser = createUser; _updateTime = updateTime; _updateUser = updateUser; _tenantId = tenantId; _tenantCode = tenantCode; _packageId = packageId; _oldPackageId = oldPackageId; _packagePrice = packagePrice; _packageNum = packageNum; _packageDiscount = packageDiscount; _expirationTime = expirationTime; _upgradeTime = upgradeTime; _status = status; _payChannel = payChannel; _isDelete = isDelete; _packageName = packageName; } Records.fromJson(dynamic json) { _id = json['id']; _createTime = json['createTime']; _createUser = json['createUser']; _updateTime = json['updateTime']; _updateUser = json['updateUser']; _tenantId = json['tenantId']; _tenantCode = json['tenantCode']; _packageId = json['packageId']; _oldPackageId = json['oldPackageId']; _packagePrice = json['packagePrice']; _packageNum = json['packageNum']; _packageDiscount = json['packageDiscount']; _expirationTime = json['expirationTime']; _upgradeTime = json['upgradeTime']; _status = json['status']; _payChannel = json['payChannel']; _isDelete = json['isDelete']; _packageName = json['packageName']; } String _id; String _createTime; String _createUser; String _updateTime; String _updateUser; String _tenantId; String _tenantCode; String _packageId; String _oldPackageId; String _packagePrice; num _packageNum; num _packageDiscount; String _expirationTime; dynamic _upgradeTime; num _status; num _payChannel; num _isDelete; String _packageName; Records copyWith({ String id, String createTime, String createUser, String updateTime, String updateUser, String tenantId, String tenantCode, String packageId, String oldPackageId, String packagePrice, num packageNum, num packageDiscount, String expirationTime, dynamic upgradeTime, num status, num payChannel, num isDelete, String packageName, }) => Records( id: id ?? _id, createTime: createTime ?? _createTime, createUser: createUser ?? _createUser, updateTime: updateTime ?? _updateTime, updateUser: updateUser ?? _updateUser, tenantId: tenantId ?? _tenantId, tenantCode: tenantCode ?? _tenantCode, packageId: packageId ?? _packageId, oldPackageId: oldPackageId ?? _oldPackageId, packagePrice: packagePrice ?? _packagePrice, packageNum: packageNum ?? _packageNum, packageDiscount: packageDiscount ?? _packageDiscount, expirationTime: expirationTime ?? _expirationTime, upgradeTime: upgradeTime ?? _upgradeTime, status: status ?? _status, payChannel: payChannel ?? _payChannel, isDelete: isDelete ?? _isDelete, packageName: packageName ?? _packageName, ); String get id => _id; String get createTime => _createTime; String get createUser => _createUser; String get updateTime => _updateTime; String get updateUser => _updateUser; String get tenantId => _tenantId; String get tenantCode => _tenantCode; String get packageId => _packageId; String get oldPackageId => _oldPackageId; String get packagePrice => _packagePrice; num get packageNum => _packageNum; num get packageDiscount => _packageDiscount; String get expirationTime => _expirationTime; dynamic get upgradeTime => _upgradeTime; num get status => _status; num get payChannel => _payChannel; num get isDelete => _isDelete; String get packageName => _packageName; Map toJson() { final map = {}; map['id'] = _id; map['createTime'] = _createTime; map['createUser'] = _createUser; map['updateTime'] = _updateTime; map['updateUser'] = _updateUser; map['tenantId'] = _tenantId; map['tenantCode'] = _tenantCode; map['packageId'] = _packageId; map['oldPackageId'] = _oldPackageId; map['packagePrice'] = _packagePrice; map['packageNum'] = _packageNum; map['packageDiscount'] = _packageDiscount; map['expirationTime'] = _expirationTime; map['upgradeTime'] = _upgradeTime; map['status'] = _status; map['payChannel'] = _payChannel; map['isDelete'] = _isDelete; map['packageName'] = _packageName; return map; } }