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.
 
 
 
 
 
 

61 lines
2.5 KiB

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'promotion.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
Promotion _$PromotionFromJson(Map<String, dynamic> 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<dynamic>?)
?.map((e) => DetailBean.fromJson(e as Map<String, dynamic>))
.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<String, dynamic> _$PromotionToJson(Promotion instance) => <String, dynamic>{
'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<String, dynamic> json) => DetailBean();
Map<String, dynamic> _$DetailBeanToJson(DetailBean instance) =>
<String, dynamic>{};