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.
57 lines
1.3 KiB
57 lines
1.3 KiB
import 'package:huixiang/generated/json/base/json_field.dart'; |
|
import 'package:huixiang/generated/json/tenant_package.g.dart'; |
|
import 'dart:convert'; |
|
export 'package:huixiang/generated/json/tenant_package.g.dart'; |
|
|
|
@JsonSerializable() |
|
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); |
|
|
|
@override |
|
String toString() { |
|
return jsonEncode(this); |
|
} |
|
} |
|
|
|
@JsonSerializable() |
|
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); |
|
|
|
@override |
|
String toString() { |
|
return jsonEncode(this); |
|
} |
|
} |