import 'package:json_annotation/json_annotation.dart'; part 'promotion.g.dart'; @JsonSerializable(explicitToJson: true) 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? 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 json) => _$PromotionFromJson(json); Map toJson() => _$PromotionToJson(this); } @JsonSerializable(explicitToJson: true) class DetailBean { DetailBean(); factory DetailBean.fromJson(Map json) => DetailBean(); Map toJson() => {}; }