// GENERATED CODE - DO NOT MODIFY BY HAND part of 'promotion.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** Promotion _$PromotionFromJson(Map json) => 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 String?, description: json['description'] as String?, id: json['id'] as String?, 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) => DetailBean.fromJson(e as Map)) .toList(), promotionPlan: json['promotionPlan'] as num?, promotionType: json['promotionType'] as num?, securityDeposit: json['securityDeposit'] as String?, status: json['status'] as num?, tag: json['tag'] as String?, updateTime: json['updateTime'] as String?, updateUser: json['updateUser'] as String?, ); 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?.map((e) => e.toJson()).toList(), 'promotionPlan': instance.promotionPlan, 'promotionType': instance.promotionType, 'securityDeposit': instance.securityDeposit, 'status': instance.status, 'tag': instance.tag, 'updateTime': instance.updateTime, 'updateUser': instance.updateUser, }; DetailBean _$DetailBeanFromJson(Map json) => DetailBean(); Map _$DetailBeanToJson(DetailBean instance) => {};