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.
46 lines
1.3 KiB
46 lines
1.3 KiB
import 'package:huixiang/generated/json/base/json_field.dart'; |
|
import 'package:huixiang/generated/json/promotion.g.dart'; |
|
|
|
@JsonSerializable() |
|
class Promotion { |
|
|
|
String? activityEndTime; |
|
String? activityStartTime; |
|
String? applyEndTime; |
|
String? applyStartTime; |
|
String? createTime; |
|
String? createUser; |
|
String? description; |
|
String? id; |
|
String? image; |
|
num? isDelete; |
|
num? isNeedSecurityDeposit; |
|
String? name; |
|
List<DetailBean>? promotionDetail; |
|
num? promotionPlan; |
|
num? promotionType; |
|
String? securityDeposit; |
|
num? status; |
|
String? tag; |
|
String? updateTime; |
|
String? updateUser; |
|
|
|
Promotion({this.activityEndTime, this.activityStartTime, this.applyEndTime, this.applyStartTime, this.createTime, this.createUser, this.description, this.id, this.image, this.isDelete, this.isNeedSecurityDeposit, this.name, this.promotionDetail, this.promotionPlan, this.promotionType, this.securityDeposit, this.status, this.tag, this.updateTime, this.updateUser}); |
|
|
|
factory Promotion.fromJson(Map<String, dynamic> json) => |
|
$PromotionFromJson(json); |
|
|
|
Map<String, dynamic> toJson() => $PromotionToJson(this); |
|
} |
|
|
|
|
|
@JsonSerializable() |
|
class DetailBean { |
|
|
|
DetailBean(); |
|
|
|
factory DetailBean.fromJson(Map<String, dynamic> json) => DetailBean(); |
|
Map<String, dynamic> toJson() => <String, dynamic>{}; |
|
|
|
} |
|
|
|
|