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.
 
 
 
 
 
 

51 lines
1.1 KiB

import 'package:json_annotation/json_annotation.dart';
part 'tenant_package.g.dart';
@JsonSerializable(explicitToJson: true)
class TenantPackage {
String? id = '';
String? createTime = '';
String? createUser = '';
String? updateTime = '';
String? updateUser = '';
String? name = '';
int? status = 0;
String? remark = '';
dynamic packagePrice;
dynamic packageDiscount;
dynamic duration;
bool? enableSale = false;
int? sort = 0;
bool? isDefault = false;
int? isDelete = 0;
List<TenantPackageSale>? tenantPackageSale = [];
TenantPackage();
factory TenantPackage.fromJson(Map<String, dynamic> json) => _$TenantPackageFromJson(json);
Map<String, dynamic> toJson() => _$TenantPackageToJson(this);
}
@JsonSerializable(explicitToJson: true)
class TenantPackageSale {
String? packagePrice = '';
String? originalPackagePrice = '';
int? duration = 0;
int? packageDiscount = 0;
bool? isRecommend = false;
String? saleName = '';
bool? canDiscount = false;
TenantPackageSale();
factory TenantPackageSale.fromJson(Map<String, dynamic> json) => _$TenantPackageSaleFromJson(json);
Map<String, dynamic> toJson() => _$TenantPackageSaleToJson(this);
}