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.
|
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
|
|
|
|
part '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<PromotionDetailBean> 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 PromotionDetailBean {
|
|
|
|
|
|
|
|
PromotionDetailBean();
|
|
|
|
|
|
|
|
factory PromotionDetailBean.fromJson(Map<String, dynamic> json) => _$PromotionDetailBeanFromJson(json);
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() => _$PromotionDetailBeanToJson(this);
|
|
|
|
}
|
|
|
|
|