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.
375 lines
9.3 KiB
375 lines
9.3 KiB
/// id : "1739884282001752064" |
|
/// createTime : "2023-12-27 13:41:53" |
|
/// createUser : "1" |
|
/// updateTime : "2023-12-27 13:41:53" |
|
/// updateUser : "1" |
|
/// code : "1197" |
|
/// name : "fff" |
|
/// type : {"desc":"创建","code":"CREATE"} |
|
/// status : {"desc":"正常","code":"NORMAL"} |
|
/// readonly : false |
|
/// usePlatformPay : false |
|
/// usePlatformVip : false |
|
/// money : "0" |
|
/// duty : "fxz" |
|
/// address : "洪山区光谷一路天成美景" |
|
/// expireLimitYear : 12 |
|
/// startTime : "2023-12-27 13:41:53" |
|
/// expirationTime : "2039-09-11 15:39:12" |
|
/// contactTel : "15827991715" |
|
/// logo : "" |
|
/// describe : "" |
|
/// account : null |
|
/// dianwodaId : "" |
|
/// dadaId : "" |
|
/// showVipCard : true |
|
/// packageId : "1742842291845857280" |
|
/// packageName : "测试啊" |
|
/// posType : {"desc":"普通餐饮","code":"NORMALSTORE"} |
|
|
|
class TenantInfo { |
|
TenantInfo({ |
|
String id, |
|
String createTime, |
|
String createUser, |
|
String updateTime, |
|
String updateUser, |
|
String code, |
|
String name, |
|
Type type, |
|
Status status, |
|
bool readonly, |
|
bool usePlatformPay, |
|
bool usePlatformVip, |
|
String money, |
|
String duty, |
|
String address, |
|
num expireLimitYear, |
|
String startTime, |
|
String expirationTime, |
|
String contactTel, |
|
String logo, |
|
String describe, |
|
dynamic account, |
|
String dianwodaId, |
|
String dadaId, |
|
bool showVipCard, |
|
String packageId, |
|
String packageName, |
|
PosType posType,}){ |
|
_id = id; |
|
_createTime = createTime; |
|
_createUser = createUser; |
|
_updateTime = updateTime; |
|
_updateUser = updateUser; |
|
_code = code; |
|
_name = name; |
|
_type = type; |
|
_status = status; |
|
_readonly = readonly; |
|
_usePlatformPay = usePlatformPay; |
|
_usePlatformVip = usePlatformVip; |
|
_money = money; |
|
_duty = duty; |
|
_address = address; |
|
_expireLimitYear = expireLimitYear; |
|
_startTime = startTime; |
|
_expirationTime = expirationTime; |
|
_contactTel = contactTel; |
|
_logo = logo; |
|
_describe = describe; |
|
_account = account; |
|
_dianwodaId = dianwodaId; |
|
_dadaId = dadaId; |
|
_showVipCard = showVipCard; |
|
_packageId = packageId; |
|
_packageName = packageName; |
|
_posType = posType; |
|
} |
|
|
|
TenantInfo.fromJson(dynamic json) { |
|
_id = json['id']; |
|
_createTime = json['createTime']; |
|
_createUser = json['createUser']; |
|
_updateTime = json['updateTime']; |
|
_updateUser = json['updateUser']; |
|
_code = json['code']; |
|
_name = json['name']; |
|
_type = json['type'] != null ? Type.fromJson(json['type']) : null; |
|
_status = json['status'] != null ? Status.fromJson(json['status']) : null; |
|
_readonly = json['readonly']; |
|
_usePlatformPay = json['usePlatformPay']; |
|
_usePlatformVip = json['usePlatformVip']; |
|
_money = json['money']; |
|
_duty = json['duty']; |
|
_address = json['address']; |
|
_expireLimitYear = json['expireLimitYear']; |
|
_startTime = json['startTime']; |
|
_expirationTime = json['expirationTime']; |
|
_contactTel = json['contactTel']; |
|
_logo = json['logo']; |
|
_describe = json['describe']; |
|
_account = json['account']; |
|
_dianwodaId = json['dianwodaId']; |
|
_dadaId = json['dadaId']; |
|
_showVipCard = json['showVipCard']; |
|
_packageId = json['packageId']; |
|
_packageName = json['packageName']; |
|
_posType = json['posType'] != null ? PosType.fromJson(json['posType']) : null; |
|
} |
|
String _id; |
|
String _createTime; |
|
String _createUser; |
|
String _updateTime; |
|
String _updateUser; |
|
String _code; |
|
String _name; |
|
Type _type; |
|
Status _status; |
|
bool _readonly; |
|
bool _usePlatformPay; |
|
bool _usePlatformVip; |
|
String _money; |
|
String _duty; |
|
String _address; |
|
num _expireLimitYear; |
|
String _startTime; |
|
String _expirationTime; |
|
String _contactTel; |
|
String _logo; |
|
String _describe; |
|
dynamic _account; |
|
String _dianwodaId; |
|
String _dadaId; |
|
bool _showVipCard; |
|
String _packageId; |
|
String _packageName; |
|
PosType _posType; |
|
TenantInfo copyWith({ String id, |
|
String createTime, |
|
String createUser, |
|
String updateTime, |
|
String updateUser, |
|
String code, |
|
String name, |
|
Type type, |
|
Status status, |
|
bool readonly, |
|
bool usePlatformPay, |
|
bool usePlatformVip, |
|
String money, |
|
String duty, |
|
String address, |
|
num expireLimitYear, |
|
String startTime, |
|
String expirationTime, |
|
String contactTel, |
|
String logo, |
|
String describe, |
|
dynamic account, |
|
String dianwodaId, |
|
String dadaId, |
|
bool showVipCard, |
|
String packageId, |
|
String packageName, |
|
PosType posType, |
|
}) => TenantInfo( id: id ?? _id, |
|
createTime: createTime ?? _createTime, |
|
createUser: createUser ?? _createUser, |
|
updateTime: updateTime ?? _updateTime, |
|
updateUser: updateUser ?? _updateUser, |
|
code: code ?? _code, |
|
name: name ?? _name, |
|
type: type ?? _type, |
|
status: status ?? _status, |
|
readonly: readonly ?? _readonly, |
|
usePlatformPay: usePlatformPay ?? _usePlatformPay, |
|
usePlatformVip: usePlatformVip ?? _usePlatformVip, |
|
money: money ?? _money, |
|
duty: duty ?? _duty, |
|
address: address ?? _address, |
|
expireLimitYear: expireLimitYear ?? _expireLimitYear, |
|
startTime: startTime ?? _startTime, |
|
expirationTime: expirationTime ?? _expirationTime, |
|
contactTel: contactTel ?? _contactTel, |
|
logo: logo ?? _logo, |
|
describe: describe ?? _describe, |
|
account: account ?? _account, |
|
dianwodaId: dianwodaId ?? _dianwodaId, |
|
dadaId: dadaId ?? _dadaId, |
|
showVipCard: showVipCard ?? _showVipCard, |
|
packageId: packageId ?? _packageId, |
|
packageName: packageName ?? _packageName, |
|
posType: posType ?? _posType, |
|
); |
|
String get id => _id; |
|
String get createTime => _createTime; |
|
String get createUser => _createUser; |
|
String get updateTime => _updateTime; |
|
String get updateUser => _updateUser; |
|
String get code => _code; |
|
String get name => _name; |
|
Type get type => _type; |
|
Status get status => _status; |
|
bool get readonly => _readonly; |
|
bool get usePlatformPay => _usePlatformPay; |
|
bool get usePlatformVip => _usePlatformVip; |
|
String get money => _money; |
|
String get duty => _duty; |
|
String get address => _address; |
|
num get expireLimitYear => _expireLimitYear; |
|
String get startTime => _startTime; |
|
String get expirationTime => _expirationTime; |
|
String get contactTel => _contactTel; |
|
String get logo => _logo; |
|
String get describe => _describe; |
|
dynamic get account => _account; |
|
String get dianwodaId => _dianwodaId; |
|
String get dadaId => _dadaId; |
|
bool get showVipCard => _showVipCard; |
|
String get packageId => _packageId; |
|
String get packageName => _packageName; |
|
PosType get posType => _posType; |
|
|
|
Map<String, dynamic> toJson() { |
|
final map = <String, dynamic>{}; |
|
map['id'] = _id; |
|
map['createTime'] = _createTime; |
|
map['createUser'] = _createUser; |
|
map['updateTime'] = _updateTime; |
|
map['updateUser'] = _updateUser; |
|
map['code'] = _code; |
|
map['name'] = _name; |
|
if (_type != null) { |
|
map['type'] = _type.toJson(); |
|
} |
|
if (_status != null) { |
|
map['status'] = _status.toJson(); |
|
} |
|
map['readonly'] = _readonly; |
|
map['usePlatformPay'] = _usePlatformPay; |
|
map['usePlatformVip'] = _usePlatformVip; |
|
map['money'] = _money; |
|
map['duty'] = _duty; |
|
map['address'] = _address; |
|
map['expireLimitYear'] = _expireLimitYear; |
|
map['startTime'] = _startTime; |
|
map['expirationTime'] = _expirationTime; |
|
map['contactTel'] = _contactTel; |
|
map['logo'] = _logo; |
|
map['describe'] = _describe; |
|
map['account'] = _account; |
|
map['dianwodaId'] = _dianwodaId; |
|
map['dadaId'] = _dadaId; |
|
map['showVipCard'] = _showVipCard; |
|
map['packageId'] = _packageId; |
|
map['packageName'] = _packageName; |
|
if (_posType != null) { |
|
map['posType'] = _posType.toJson(); |
|
} |
|
return map; |
|
} |
|
|
|
} |
|
|
|
/// desc : "普通餐饮" |
|
/// code : "NORMALSTORE" |
|
|
|
class PosType { |
|
PosType({ |
|
String desc, |
|
String code,}){ |
|
_desc = desc; |
|
_code = code; |
|
} |
|
|
|
PosType.fromJson(dynamic json) { |
|
_desc = json['desc']; |
|
_code = json['code']; |
|
} |
|
String _desc; |
|
String _code; |
|
PosType copyWith({ String desc, |
|
String code, |
|
}) => PosType( desc: desc ?? _desc, |
|
code: code ?? _code, |
|
); |
|
String get desc => _desc; |
|
String get code => _code; |
|
|
|
Map<String, dynamic> toJson() { |
|
final map = <String, dynamic>{}; |
|
map['desc'] = _desc; |
|
map['code'] = _code; |
|
return map; |
|
} |
|
|
|
} |
|
|
|
/// desc : "正常" |
|
/// code : "NORMAL" |
|
|
|
class Status { |
|
Status({ |
|
String desc, |
|
String code,}){ |
|
_desc = desc; |
|
_code = code; |
|
} |
|
|
|
Status.fromJson(dynamic json) { |
|
_desc = json['desc']; |
|
_code = json['code']; |
|
} |
|
String _desc; |
|
String _code; |
|
Status copyWith({ String desc, |
|
String code, |
|
}) => Status( desc: desc ?? _desc, |
|
code: code ?? _code, |
|
); |
|
String get desc => _desc; |
|
String get code => _code; |
|
|
|
Map<String, dynamic> toJson() { |
|
final map = <String, dynamic>{}; |
|
map['desc'] = _desc; |
|
map['code'] = _code; |
|
return map; |
|
} |
|
|
|
} |
|
|
|
/// desc : "创建" |
|
/// code : "CREATE" |
|
|
|
class Type { |
|
Type({ |
|
String desc, |
|
String code,}){ |
|
_desc = desc; |
|
_code = code; |
|
} |
|
|
|
Type.fromJson(dynamic json) { |
|
_desc = json['desc']; |
|
_code = json['code']; |
|
} |
|
String _desc; |
|
String _code; |
|
Type copyWith({ String desc, |
|
String code, |
|
}) => Type( desc: desc ?? _desc, |
|
code: code ?? _code, |
|
); |
|
String get desc => _desc; |
|
String get code => _code; |
|
|
|
Map<String, dynamic> toJson() { |
|
final map = <String, dynamic>{}; |
|
map['desc'] = _desc; |
|
map['code'] = _code; |
|
return map; |
|
} |
|
|
|
} |