// GENERATED CODE - DO NOT MODIFY BY HAND part of 'promotion.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** Promotion _$PromotionFromJson(Map json) { return Promotion( activityEndTime: json['activityEndTime'] as String, activityStartTime: json['activityStartTime'] as String, applyEndTime: json['applyEndTime'] as String, applyStartTime: json['applyStartTime'] as String, createTime: json['createTime'] as String, createUser: json['createUser'] as num, description: json['description'] as String, id: json['id'] as num, image: json['image'] as String, isDelete: json['isDelete'] as num, isNeedSecurityDeposit: json['isNeedSecurityDeposit'] as num, name: json['name'] as String, promotionDetail: (json['promotionDetail'] as List) ?.map((e) => e == null ? null : PromotionDetailBean.fromJson(e as Map)) ?.toList(), promotionPlan: json['promotionPlan'] as num, promotionType: json['promotionType'] as num, securityDeposit: json['securityDeposit'] as num, status: json['status'] as num, tag: json['tag'] as String, updateTime: json['updateTime'] as String, updateUser: json['updateUser'] as num, ); } Map _$PromotionToJson(Promotion instance) => { 'activityEndTime': instance.activityEndTime, 'activityStartTime': instance.activityStartTime, 'applyEndTime': instance.applyEndTime, 'applyStartTime': instance.applyStartTime, 'createTime': instance.createTime, 'createUser': instance.createUser, 'description': instance.description, 'id': instance.id, 'image': instance.image, 'isDelete': instance.isDelete, 'isNeedSecurityDeposit': instance.isNeedSecurityDeposit, 'name': instance.name, 'promotionDetail': instance.promotionDetail, 'promotionPlan': instance.promotionPlan, 'promotionType': instance.promotionType, 'securityDeposit': instance.securityDeposit, 'status': instance.status, 'tag': instance.tag, 'updateTime': instance.updateTime, 'updateUser': instance.updateUser, }; PromotionDetailBean _$PromotionDetailBeanFromJson(Map json) { return PromotionDetailBean(); } Map _$PromotionDetailBeanToJson( PromotionDetailBean instance) => {};