import 'package:json_annotation/json_annotation.dart'; part 'promotion_info.g.dart'; @JsonSerializable(explicitToJson: true) class PromotionInfo { String? id = ''; String? createTime = ''; String? createUser = ''; String? updateTime = ''; String? updateUser = ''; String? storeId = ''; String? name = ''; String? image = ''; String? description = ''; int? status = 0; String? applyStartTime = ''; String? applyEndTime = ''; String? activityStartTime = ''; String? activityEndTime = ''; dynamic doStartTime; dynamic doEndTime; int? isNeedSecurityDeposit = 0; String? securityDeposit = ''; String? tag = ''; int? promotionType = 0; int? promotionPlan = 0; List? promotionDetail = []; List? channels = []; bool? isVip = false; int? isDelete = 0; String? tenantCode = ''; bool? canPartake = false; bool? isMaxPromotion = false; dynamic promotionProuctList; PromotionInfo(); factory PromotionInfo.fromJson(Map json) => _$PromotionInfoFromJson(json); Map toJson() => _$PromotionInfoToJson(this); } @JsonSerializable(explicitToJson: true) class PromotionInfoPromotionDetail { String? limitTime = ''; String? discountRate = ''; String? discountAmount = ''; String? fullAmount = ''; String? collageNumber = ''; String? fullNumber = ''; PromotionInfoPromotionDetail(); factory PromotionInfoPromotionDetail.fromJson(Map json) => _$PromotionInfoPromotionDetailFromJson(json); Map toJson() => _$PromotionInfoPromotionDetailToJson(this); }