import 'package:json_annotation/json_annotation.dart'; part 'tenant_info.g.dart'; @JsonSerializable(explicitToJson: true) class TenantInfo { String? id = ''; String? createTime = ''; String? createUser = ''; String? updateTime = ''; String? updateUser = ''; String? code = ''; String? name = ''; Type? type; Status? status; bool? readonly = false; bool? usePlatformPay = false; bool? usePlatformVip = false; String? money = ''; String? duty = ''; String? address = ''; int? expireLimitYear = 0; String? startTime = ''; String? expirationTime = ''; String? contactTel = ''; String? logo = ''; String? describe = ''; dynamic account; String? dianwodaId = ''; String? dadaId = ''; bool? showVipCard = false; String? packageId = ''; String? packageName = ''; PosType? posType; TenantInfo(); factory TenantInfo.fromJson(Map json) => _$TenantInfoFromJson(json); Map toJson() => _$TenantInfoToJson(this); } @JsonSerializable(explicitToJson: true) class Type { String? desc = ''; String? code = ''; Type(); factory Type.fromJson(Map json) => _$TypeFromJson(json); Map toJson() => _$TypeToJson(this); } @JsonSerializable(explicitToJson: true) class Status { String? desc = ''; String? code = ''; Status(); factory Status.fromJson(Map json) => _$StatusFromJson(json); Map toJson() => _$StatusToJson(this); } @JsonSerializable(explicitToJson: true) class PosType { String? desc = ''; String? code = ''; PosType(); factory PosType.fromJson(Map json) => _$PosTypeFromJson(json); Map toJson() => _$PosTypeToJson(this); }