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.
69 lines
1.7 KiB
69 lines
1.7 KiB
import 'package:huixiang/generated/json/base/json_field.dart'; |
|
import 'package:huixiang/generated/json/promotion_info.g.dart'; |
|
import 'dart:convert'; |
|
export 'package:huixiang/generated/json/promotion_info.g.dart'; |
|
|
|
@JsonSerializable() |
|
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); |
|
|
|
@override |
|
String toString() { |
|
return jsonEncode(this); |
|
} |
|
} |
|
|
|
@JsonSerializable() |
|
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); |
|
|
|
@override |
|
String toString() { |
|
return jsonEncode(this); |
|
} |
|
} |