// GENERATED CODE - DO NOT MODIFY BY HAND part of 'promotion_info.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** PromotionInfo _$PromotionInfoFromJson(Map 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?) ?.map((e) => PromotionInfoPromotionDetail.fromJson(e as Map)) .toList() ..channels = (json['channels'] as List?)?.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 _$PromotionInfoToJson(PromotionInfo instance) => { '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 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 _$PromotionInfoPromotionDetailToJson( PromotionInfoPromotionDetail instance) => { 'limitTime': instance.limitTime, 'discountRate': instance.discountRate, 'discountAmount': instance.discountAmount, 'fullAmount': instance.fullAmount, 'collageNumber': instance.collageNumber, 'fullNumber': instance.fullNumber, };