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.
99 lines
4.2 KiB
99 lines
4.2 KiB
1 month ago
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
|
||
|
part of 'promotion_info.dart';
|
||
|
|
||
|
// **************************************************************************
|
||
|
// JsonSerializableGenerator
|
||
|
// **************************************************************************
|
||
|
|
||
|
PromotionInfo _$PromotionInfoFromJson(Map<String, dynamic> json) =>
|
||
|
PromotionInfo()
|
||
|
..id = json['id'] as String?
|
||
|
..createTime = json['createTime'] as String?
|
||
|
..createUser = json['createUser'] as String?
|
||
|
..updateTime = json['updateTime'] as String?
|
||
|
..updateUser = json['updateUser'] as String?
|
||
|
..storeId = json['storeId'] as String?
|
||
|
..name = json['name'] as String?
|
||
|
..image = json['image'] as String?
|
||
|
..description = json['description'] as String?
|
||
|
..status = (json['status'] as num?)?.toInt()
|
||
|
..applyStartTime = json['applyStartTime'] as String?
|
||
|
..applyEndTime = json['applyEndTime'] as String?
|
||
|
..activityStartTime = json['activityStartTime'] as String?
|
||
|
..activityEndTime = json['activityEndTime'] as String?
|
||
|
..doStartTime = json['doStartTime']
|
||
|
..doEndTime = json['doEndTime']
|
||
|
..isNeedSecurityDeposit = (json['isNeedSecurityDeposit'] as num?)?.toInt()
|
||
|
..securityDeposit = json['securityDeposit'] as String?
|
||
|
..tag = json['tag'] as String?
|
||
|
..promotionType = (json['promotionType'] as num?)?.toInt()
|
||
|
..promotionPlan = (json['promotionPlan'] as num?)?.toInt()
|
||
|
..promotionDetail = (json['promotionDetail'] as List<dynamic>?)
|
||
|
?.map((e) =>
|
||
|
PromotionInfoPromotionDetail.fromJson(e as Map<String, dynamic>))
|
||
|
.toList()
|
||
|
..channels =
|
||
|
(json['channels'] as List<dynamic>?)?.map((e) => e as String).toList()
|
||
|
..isVip = json['isVip'] as bool?
|
||
|
..isDelete = (json['isDelete'] as num?)?.toInt()
|
||
|
..tenantCode = json['tenantCode'] as String?
|
||
|
..canPartake = json['canPartake'] as bool?
|
||
|
..isMaxPromotion = json['isMaxPromotion'] as bool?
|
||
|
..promotionProuctList = json['promotionProuctList'];
|
||
|
|
||
|
Map<String, dynamic> _$PromotionInfoToJson(PromotionInfo instance) =>
|
||
|
<String, dynamic>{
|
||
|
'id': instance.id,
|
||
|
'createTime': instance.createTime,
|
||
|
'createUser': instance.createUser,
|
||
|
'updateTime': instance.updateTime,
|
||
|
'updateUser': instance.updateUser,
|
||
|
'storeId': instance.storeId,
|
||
|
'name': instance.name,
|
||
|
'image': instance.image,
|
||
|
'description': instance.description,
|
||
|
'status': instance.status,
|
||
|
'applyStartTime': instance.applyStartTime,
|
||
|
'applyEndTime': instance.applyEndTime,
|
||
|
'activityStartTime': instance.activityStartTime,
|
||
|
'activityEndTime': instance.activityEndTime,
|
||
|
'doStartTime': instance.doStartTime,
|
||
|
'doEndTime': instance.doEndTime,
|
||
|
'isNeedSecurityDeposit': instance.isNeedSecurityDeposit,
|
||
|
'securityDeposit': instance.securityDeposit,
|
||
|
'tag': instance.tag,
|
||
|
'promotionType': instance.promotionType,
|
||
|
'promotionPlan': instance.promotionPlan,
|
||
|
'promotionDetail':
|
||
|
instance.promotionDetail?.map((e) => e.toJson()).toList(),
|
||
|
'channels': instance.channels,
|
||
|
'isVip': instance.isVip,
|
||
|
'isDelete': instance.isDelete,
|
||
|
'tenantCode': instance.tenantCode,
|
||
|
'canPartake': instance.canPartake,
|
||
|
'isMaxPromotion': instance.isMaxPromotion,
|
||
|
'promotionProuctList': instance.promotionProuctList,
|
||
|
};
|
||
|
|
||
|
PromotionInfoPromotionDetail _$PromotionInfoPromotionDetailFromJson(
|
||
|
Map<String, dynamic> json) =>
|
||
|
PromotionInfoPromotionDetail()
|
||
|
..limitTime = json['limitTime'] as String?
|
||
|
..discountRate = json['discountRate'] as String?
|
||
|
..discountAmount = json['discountAmount'] as String?
|
||
|
..fullAmount = json['fullAmount'] as String?
|
||
|
..collageNumber = json['collageNumber'] as String?
|
||
|
..fullNumber = json['fullNumber'] as String?;
|
||
|
|
||
|
Map<String, dynamic> _$PromotionInfoPromotionDetailToJson(
|
||
|
PromotionInfoPromotionDetail instance) =>
|
||
|
<String, dynamic>{
|
||
|
'limitTime': instance.limitTime,
|
||
|
'discountRate': instance.discountRate,
|
||
|
'discountAmount': instance.discountAmount,
|
||
|
'fullAmount': instance.fullAmount,
|
||
|
'collageNumber': instance.collageNumber,
|
||
|
'fullNumber': instance.fullNumber,
|
||
|
};
|