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.
71 lines
2.8 KiB
71 lines
2.8 KiB
1 month ago
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
|
||
|
part of 'tenant_package.dart';
|
||
|
|
||
|
// **************************************************************************
|
||
|
// JsonSerializableGenerator
|
||
|
// **************************************************************************
|
||
|
|
||
|
TenantPackage _$TenantPackageFromJson(Map<String, dynamic> json) =>
|
||
|
TenantPackage()
|
||
|
..id = json['id'] as String?
|
||
|
..createTime = json['createTime'] as String?
|
||
|
..createUser = json['createUser'] as String?
|
||
|
..updateTime = json['updateTime'] as String?
|
||
|
..updateUser = json['updateUser'] as String?
|
||
|
..name = json['name'] as String?
|
||
|
..status = (json['status'] as num?)?.toInt()
|
||
|
..remark = json['remark'] as String?
|
||
|
..packagePrice = json['packagePrice']
|
||
|
..packageDiscount = json['packageDiscount']
|
||
|
..duration = json['duration']
|
||
|
..enableSale = json['enableSale'] as bool?
|
||
|
..sort = (json['sort'] as num?)?.toInt()
|
||
|
..isDefault = json['isDefault'] as bool?
|
||
|
..isDelete = (json['isDelete'] as num?)?.toInt()
|
||
|
..tenantPackageSale = (json['tenantPackageSale'] as List<dynamic>?)
|
||
|
?.map((e) => TenantPackageSale.fromJson(e as Map<String, dynamic>))
|
||
|
.toList();
|
||
|
|
||
|
Map<String, dynamic> _$TenantPackageToJson(TenantPackage instance) =>
|
||
|
<String, dynamic>{
|
||
|
'id': instance.id,
|
||
|
'createTime': instance.createTime,
|
||
|
'createUser': instance.createUser,
|
||
|
'updateTime': instance.updateTime,
|
||
|
'updateUser': instance.updateUser,
|
||
|
'name': instance.name,
|
||
|
'status': instance.status,
|
||
|
'remark': instance.remark,
|
||
|
'packagePrice': instance.packagePrice,
|
||
|
'packageDiscount': instance.packageDiscount,
|
||
|
'duration': instance.duration,
|
||
|
'enableSale': instance.enableSale,
|
||
|
'sort': instance.sort,
|
||
|
'isDefault': instance.isDefault,
|
||
|
'isDelete': instance.isDelete,
|
||
|
'tenantPackageSale':
|
||
|
instance.tenantPackageSale?.map((e) => e.toJson()).toList(),
|
||
|
};
|
||
|
|
||
|
TenantPackageSale _$TenantPackageSaleFromJson(Map<String, dynamic> json) =>
|
||
|
TenantPackageSale()
|
||
|
..packagePrice = json['packagePrice'] as String?
|
||
|
..originalPackagePrice = json['originalPackagePrice'] as String?
|
||
|
..duration = (json['duration'] as num?)?.toInt()
|
||
|
..packageDiscount = (json['packageDiscount'] as num?)?.toInt()
|
||
|
..isRecommend = json['isRecommend'] as bool?
|
||
|
..saleName = json['saleName'] as String?
|
||
|
..canDiscount = json['canDiscount'] as bool?;
|
||
|
|
||
|
Map<String, dynamic> _$TenantPackageSaleToJson(TenantPackageSale instance) =>
|
||
|
<String, dynamic>{
|
||
|
'packagePrice': instance.packagePrice,
|
||
|
'originalPackagePrice': instance.originalPackagePrice,
|
||
|
'duration': instance.duration,
|
||
|
'packageDiscount': instance.packageDiscount,
|
||
|
'isRecommend': instance.isRecommend,
|
||
|
'saleName': instance.saleName,
|
||
|
'canDiscount': instance.canDiscount,
|
||
|
};
|