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.
 
 
 
 
 
 

85 lines
2.9 KiB

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) => Promotion(
activityEndTime: json['activityEndTime'] as String,
activityStartTime: json['activityStartTime'] as String,
applyEndTime: json['applyEndTime'] as String,
applyStartTime: json['applyStartTime'] as String,
createTime: json['createTime'] as String,
createUser: json['createUser'] as String,
description: json['description'] as String,
id: json['id'] as String,
image: json['image'] as String,
isDelete: json['isDelete'] as num,
isNeedSecurityDeposit: json['isNeedSecurityDeposit'] as num,
name: json['name'] as String,
promotionDetail: (json['promotionDetail'] as List)
?.map((e) => e == null
? null
: PromotionDetailBean.fromJson(e as Map<String, dynamic>))
?.toList(),
promotionPlan: json['promotionPlan'] as num,
promotionType: json['promotionType'] as num,
securityDeposit: json['securityDeposit'] as String,
status: json['status'] as num,
tag: json['tag'] as String,
updateTime: json['updateTime'] as String,
updateUser: json['updateUser'] as String,
);
Map<String, dynamic> toJson() => <String, dynamic>{
'activityEndTime': this.activityEndTime,
'activityStartTime': this.activityStartTime,
'applyEndTime': this.applyEndTime,
'applyStartTime': this.applyStartTime,
'createTime': this.createTime,
'createUser': this.createUser,
'description': this.description,
'id': this.id,
'image': this.image,
'isDelete': this.isDelete,
'isNeedSecurityDeposit': this.isNeedSecurityDeposit,
'name': this.name,
'promotionDetail': this.promotionDetail,
'promotionPlan': this.promotionPlan,
'promotionType': this.promotionType,
'securityDeposit': this.securityDeposit,
'status': this.status,
'tag': this.tag,
'updateTime': this.updateTime,
'updateUser': this.updateUser,
};
}
class PromotionDetailBean {
PromotionDetailBean();
factory PromotionDetailBean.fromJson(Map<String, dynamic> json) => PromotionDetailBean();
Map<String, dynamic> toJson() => <String, dynamic>{};
}