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.

63 lines
1.5 KiB

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<PromotionInfoPromotionDetail>? promotionDetail = [];
List<String>? channels = [];
bool? isVip = false;
int? isDelete = 0;
String? tenantCode = '';
bool? canPartake = false;
bool? isMaxPromotion = false;
dynamic promotionProuctList;
PromotionInfo();
factory PromotionInfo.fromJson(Map<String, dynamic> json) => _$PromotionInfoFromJson(json);
Map<String, dynamic> 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<String, dynamic> json) => _$PromotionInfoPromotionDetailFromJson(json);
Map<String, dynamic> toJson() => _$PromotionInfoPromotionDetailToJson(this);
}