/// records : [{"id":"1693482520970002431","rechargeMoney":"50.00","giftdMoney":"20.00","limitNum":0,"gitfdCouponId":null,"startDate":null,"endDate":null,"startTime":null,"endTime":null,"tenantCode":"1195","createTime":"2023-10-25 17:18:40","isDeleted":0,"rechargeType":0,"remark":"充值50.00 赠送20.00","sortValue":0,"useNum":0,"mid":null}] /// total : "0" /// size : "999" /// current : "1" /// orders : [{"column":"id","asc":false}] /// hitCount : false /// searchCount : true /// pages : "0" class BusRechargeList { BusRechargeList({ 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; } BusRechargeList.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; BusRechargeList copyWith({ List records, String total, String size, String current, List orders, bool hitCount, bool searchCount, String pages, }) => BusRechargeList( 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 : "id" /// 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 : "1693482520970002431" /// rechargeMoney : "50.00" /// giftdMoney : "20.00" /// limitNum : 0 /// gitfdCouponId : null /// startDate : null /// endDate : null /// startTime : null /// endTime : null /// tenantCode : "1195" /// createTime : "2023-10-25 17:18:40" /// isDeleted : 0 /// rechargeType : 0 /// remark : "充值50.00 赠送20.00" /// sortValue : 0 /// useNum : 0 /// mid : null class Records { Records({ String id, String rechargeMoney, String giftdMoney, num limitNum, dynamic gitfdCouponId, dynamic startDate, dynamic endDate, dynamic startTime, dynamic endTime, String tenantCode, String createTime, num isDeleted, num rechargeType, String remark, num sortValue, num useNum, dynamic mid,}){ _id = id; _rechargeMoney = rechargeMoney; _giftdMoney = giftdMoney; _limitNum = limitNum; _gitfdCouponId = gitfdCouponId; _startDate = startDate; _endDate = endDate; _startTime = startTime; _endTime = endTime; _tenantCode = tenantCode; _createTime = createTime; _isDeleted = isDeleted; _rechargeType = rechargeType; _remark = remark; _sortValue = sortValue; _useNum = useNum; _mid = mid; } Records.fromJson(dynamic json) { _id = json['id']; _rechargeMoney = json['rechargeMoney']; _giftdMoney = json['giftdMoney']; _limitNum = json['limitNum']; _gitfdCouponId = json['gitfdCouponId']; _startDate = json['startDate']; _endDate = json['endDate']; _startTime = json['startTime']; _endTime = json['endTime']; _tenantCode = json['tenantCode']; _createTime = json['createTime']; _isDeleted = json['isDeleted']; _rechargeType = json['rechargeType']; _remark = json['remark']; _sortValue = json['sortValue']; _useNum = json['useNum']; _mid = json['mid']; } String _id; String _rechargeMoney; String _giftdMoney; num _limitNum; dynamic _gitfdCouponId; dynamic _startDate; dynamic _endDate; dynamic _startTime; dynamic _endTime; String _tenantCode; String _createTime; num _isDeleted; num _rechargeType; String _remark; num _sortValue; num _useNum; dynamic _mid; Records copyWith({ String id, String rechargeMoney, String giftdMoney, num limitNum, dynamic gitfdCouponId, dynamic startDate, dynamic endDate, dynamic startTime, dynamic endTime, String tenantCode, String createTime, num isDeleted, num rechargeType, String remark, num sortValue, num useNum, dynamic mid, }) => Records( id: id ?? _id, rechargeMoney: rechargeMoney ?? _rechargeMoney, giftdMoney: giftdMoney ?? _giftdMoney, limitNum: limitNum ?? _limitNum, gitfdCouponId: gitfdCouponId ?? _gitfdCouponId, startDate: startDate ?? _startDate, endDate: endDate ?? _endDate, startTime: startTime ?? _startTime, endTime: endTime ?? _endTime, tenantCode: tenantCode ?? _tenantCode, createTime: createTime ?? _createTime, isDeleted: isDeleted ?? _isDeleted, rechargeType: rechargeType ?? _rechargeType, remark: remark ?? _remark, sortValue: sortValue ?? _sortValue, useNum: useNum ?? _useNum, mid: mid ?? _mid, ); String get id => _id; String get rechargeMoney => _rechargeMoney; String get giftdMoney => _giftdMoney; num get limitNum => _limitNum; dynamic get gitfdCouponId => _gitfdCouponId; dynamic get startDate => _startDate; dynamic get endDate => _endDate; dynamic get startTime => _startTime; dynamic get endTime => _endTime; String get tenantCode => _tenantCode; String get createTime => _createTime; num get isDeleted => _isDeleted; num get rechargeType => _rechargeType; String get remark => _remark; num get sortValue => _sortValue; num get useNum => _useNum; dynamic get mid => _mid; Map toJson() { final map = {}; map['id'] = _id; map['rechargeMoney'] = _rechargeMoney; map['giftdMoney'] = _giftdMoney; map['limitNum'] = _limitNum; map['gitfdCouponId'] = _gitfdCouponId; map['startDate'] = _startDate; map['endDate'] = _endDate; map['startTime'] = _startTime; map['endTime'] = _endTime; map['tenantCode'] = _tenantCode; map['createTime'] = _createTime; map['isDeleted'] = _isDeleted; map['rechargeType'] = _rechargeType; map['remark'] = _remark; map['sortValue'] = _sortValue; map['useNum'] = _useNum; map['mid'] = _mid; return map; } }