// GENERATED CODE - DO NOT MODIFY BY HAND part of 'tenant_package.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** TenantPackage _$TenantPackageFromJson(Map 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?) ?.map((e) => TenantPackageSale.fromJson(e as Map)) .toList(); Map _$TenantPackageToJson(TenantPackage instance) => { '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 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 _$TenantPackageSaleToJson(TenantPackageSale instance) => { 'packagePrice': instance.packagePrice, 'originalPackagePrice': instance.originalPackagePrice, 'duration': instance.duration, 'packageDiscount': instance.packageDiscount, 'isRecommend': instance.isRecommend, 'saleName': instance.saleName, 'canDiscount': instance.canDiscount, };