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.
286 lines
7.6 KiB
286 lines
7.6 KiB
5 months ago
|
/// records : [{"id":"1820725763083599872","createTime":"2024-08-06 15:37:04","createUser":"1379254113602109440","updateTime":"2024-08-06 15:37:04","updateUser":"1379254113602109440","userId":"1379254113602109440","isDefault":1,"type":"PERSONAL","name":"哈哈","taxId":"","companyAddr":"","companyPhone":"","bank":"","bankNumber":"","isDelete":0},{"id":"1818128371540819968","createTime":"2024-07-30 11:35:58","createUser":"1379254113602109440","updateTime":"2024-07-30 11:35:58","updateUser":"1379254113602109440","userId":"1379254113602109440","isDefault":1,"type":"COMPANY","name":"彗星","taxId":"123568986457","companyAddr":"","companyPhone":"","bank":"","bankNumber":"","isDelete":0}]
|
||
|
/// total : "2"
|
||
|
/// size : "50"
|
||
|
/// current : "1"
|
||
|
/// orders : [{"column":"id","asc":false}]
|
||
|
/// hitCount : false
|
||
|
/// searchCount : true
|
||
|
/// pages : "1"
|
||
|
|
||
|
class TitleInfoList {
|
||
|
TitleInfoList({
|
||
|
List<Records>? records,
|
||
|
String? total,
|
||
|
String? size,
|
||
|
String? current,
|
||
|
List<Orders>? orders,
|
||
|
bool? hitCount,
|
||
|
bool? searchCount,
|
||
|
String? pages,}){
|
||
|
_records = records;
|
||
|
_total = total;
|
||
|
_size = size;
|
||
|
_current = current;
|
||
|
_orders = orders;
|
||
|
_hitCount = hitCount;
|
||
|
_searchCount = searchCount;
|
||
|
_pages = pages;
|
||
|
}
|
||
|
|
||
|
TitleInfoList.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>? _records;
|
||
|
String? _total;
|
||
|
String? _size;
|
||
|
String? _current;
|
||
|
List<Orders>? _orders;
|
||
|
bool? _hitCount;
|
||
|
bool? _searchCount;
|
||
|
String? _pages;
|
||
|
TitleInfoList copyWith({ List<Records>? records,
|
||
|
String? total,
|
||
|
String? size,
|
||
|
String? current,
|
||
|
List<Orders>? orders,
|
||
|
bool? hitCount,
|
||
|
bool? searchCount,
|
||
|
String? pages,
|
||
|
}) => TitleInfoList( 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<Records>? get records => _records;
|
||
|
String? get total => _total;
|
||
|
String? get size => _size;
|
||
|
String? get current => _current;
|
||
|
List<Orders>? get orders => _orders;
|
||
|
bool? get hitCount => _hitCount;
|
||
|
bool? get searchCount => _searchCount;
|
||
|
String? get pages => _pages;
|
||
|
|
||
|
Map<String, dynamic> toJson() {
|
||
|
final map = <String, dynamic>{};
|
||
|
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<String, dynamic> toJson() {
|
||
|
final map = <String, dynamic>{};
|
||
|
map['column'] = _column;
|
||
|
map['asc'] = _asc;
|
||
|
return map;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
/// id : "1820725763083599872"
|
||
|
/// createTime : "2024-08-06 15:37:04"
|
||
|
/// createUser : "1379254113602109440"
|
||
|
/// updateTime : "2024-08-06 15:37:04"
|
||
|
/// updateUser : "1379254113602109440"
|
||
|
/// userId : "1379254113602109440"
|
||
|
/// isDefault : 1
|
||
|
/// type : "PERSONAL"
|
||
|
/// name : "哈哈"
|
||
|
/// taxId : ""
|
||
|
/// companyAddr : ""
|
||
|
/// companyPhone : ""
|
||
|
/// bank : ""
|
||
|
/// bankNumber : ""
|
||
|
/// isDelete : 0
|
||
|
|
||
|
class Records {
|
||
|
Records({
|
||
|
String? id,
|
||
|
String? createTime,
|
||
|
String? createUser,
|
||
|
String? updateTime,
|
||
|
String? updateUser,
|
||
|
String? userId,
|
||
|
num? isDefault,
|
||
|
String? type,
|
||
|
String? name,
|
||
|
String? taxId,
|
||
|
String? companyAddr,
|
||
|
String? companyPhone,
|
||
|
String? bank,
|
||
|
String? bankNumber,
|
||
|
num? isDelete,}){
|
||
|
_id = id;
|
||
|
_createTime = createTime;
|
||
|
_createUser = createUser;
|
||
|
_updateTime = updateTime;
|
||
|
_updateUser = updateUser;
|
||
|
_userId = userId;
|
||
|
_isDefault = isDefault;
|
||
|
_type = type;
|
||
|
_name = name;
|
||
|
_taxId = taxId;
|
||
|
_companyAddr = companyAddr;
|
||
|
_companyPhone = companyPhone;
|
||
|
_bank = bank;
|
||
|
_bankNumber = bankNumber;
|
||
|
_isDelete = isDelete;
|
||
|
}
|
||
|
|
||
|
Records.fromJson(dynamic json) {
|
||
|
_id = json['id'];
|
||
|
_createTime = json['createTime'];
|
||
|
_createUser = json['createUser'];
|
||
|
_updateTime = json['updateTime'];
|
||
|
_updateUser = json['updateUser'];
|
||
|
_userId = json['userId'];
|
||
|
_isDefault = json['isDefault'];
|
||
|
_type = json['type'];
|
||
|
_name = json['name'];
|
||
|
_taxId = json['taxId'];
|
||
|
_companyAddr = json['companyAddr'];
|
||
|
_companyPhone = json['companyPhone'];
|
||
|
_bank = json['bank'];
|
||
|
_bankNumber = json['bankNumber'];
|
||
|
_isDelete = json['isDelete'];
|
||
|
}
|
||
|
String? _id;
|
||
|
String? _createTime;
|
||
|
String? _createUser;
|
||
|
String? _updateTime;
|
||
|
String? _updateUser;
|
||
|
String? _userId;
|
||
|
num? _isDefault;
|
||
|
String? _type;
|
||
|
String? _name;
|
||
|
String? _taxId;
|
||
|
String? _companyAddr;
|
||
|
String? _companyPhone;
|
||
|
String? _bank;
|
||
|
String? _bankNumber;
|
||
|
num? _isDelete;
|
||
|
Records copyWith({ String? id,
|
||
|
String? createTime,
|
||
|
String? createUser,
|
||
|
String? updateTime,
|
||
|
String? updateUser,
|
||
|
String? userId,
|
||
|
num? isDefault,
|
||
|
String? type,
|
||
|
String? name,
|
||
|
String? taxId,
|
||
|
String? companyAddr,
|
||
|
String? companyPhone,
|
||
|
String? bank,
|
||
|
String? bankNumber,
|
||
|
num? isDelete,
|
||
|
}) => Records( id: id ?? _id,
|
||
|
createTime: createTime ?? _createTime,
|
||
|
createUser: createUser ?? _createUser,
|
||
|
updateTime: updateTime ?? _updateTime,
|
||
|
updateUser: updateUser ?? _updateUser,
|
||
|
userId: userId ?? _userId,
|
||
|
isDefault: isDefault ?? _isDefault,
|
||
|
type: type ?? _type,
|
||
|
name: name ?? _name,
|
||
|
taxId: taxId ?? _taxId,
|
||
|
companyAddr: companyAddr ?? _companyAddr,
|
||
|
companyPhone: companyPhone ?? _companyPhone,
|
||
|
bank: bank ?? _bank,
|
||
|
bankNumber: bankNumber ?? _bankNumber,
|
||
|
isDelete: isDelete ?? _isDelete,
|
||
|
);
|
||
|
String? get id => _id;
|
||
|
String? get createTime => _createTime;
|
||
|
String? get createUser => _createUser;
|
||
|
String? get updateTime => _updateTime;
|
||
|
String? get updateUser => _updateUser;
|
||
|
String? get userId => _userId;
|
||
|
num? get isDefault => _isDefault;
|
||
|
String? get type => _type;
|
||
|
String? get name => _name;
|
||
|
String? get taxId => _taxId;
|
||
|
String? get companyAddr => _companyAddr;
|
||
|
String? get companyPhone => _companyPhone;
|
||
|
String? get bank => _bank;
|
||
|
String? get bankNumber => _bankNumber;
|
||
|
num? get isDelete => _isDelete;
|
||
|
|
||
|
Map<String, dynamic> toJson() {
|
||
|
final map = <String, dynamic>{};
|
||
|
map['id'] = _id;
|
||
|
map['createTime'] = _createTime;
|
||
|
map['createUser'] = _createUser;
|
||
|
map['updateTime'] = _updateTime;
|
||
|
map['updateUser'] = _updateUser;
|
||
|
map['userId'] = _userId;
|
||
|
map['isDefault'] = _isDefault;
|
||
|
map['type'] = _type;
|
||
|
map['name'] = _name;
|
||
|
map['taxId'] = _taxId;
|
||
|
map['companyAddr'] = _companyAddr;
|
||
|
map['companyPhone'] = _companyPhone;
|
||
|
map['bank'] = _bank;
|
||
|
map['bankNumber'] = _bankNumber;
|
||
|
map['isDelete'] = _isDelete;
|
||
|
return map;
|
||
|
}
|
||
|
|
||
|
}
|