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.
47 lines
1.4 KiB
47 lines
1.4 KiB
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'promotion_list_model.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
PromotionListModel _$PromotionListModelFromJson(Map<String, dynamic> json) {
|
|
return PromotionListModel(
|
|
json['code'],
|
|
(json['data'] as List<dynamic>)
|
|
.map((e) => Promotion.fromJson(e as Map<String, dynamic>))
|
|
.toList(),
|
|
json['msg'],
|
|
);
|
|
}
|
|
|
|
Map<String, dynamic> _$PromotionListModelToJson(PromotionListModel instance) =>
|
|
<String, dynamic>{
|
|
'code': instance.code,
|
|
'msg': instance.msg,
|
|
'data': instance.data,
|
|
};
|
|
|
|
Promotion _$PromotionFromJson(Map<String, dynamic> json) {
|
|
return Promotion(
|
|
json['id'] as int,
|
|
json['promotionName'] as String,
|
|
json['startTime'] as String,
|
|
json['endTime'] as String,
|
|
json['showName'] as String,
|
|
json['isProcessing'] as int,
|
|
trueEndTime: json['trueEndTime'] as String?,
|
|
);
|
|
}
|
|
|
|
Map<String, dynamic> _$PromotionToJson(Promotion instance) => <String, dynamic>{
|
|
'id': instance.id,
|
|
'promotionName': instance.promotionName,
|
|
'startTime': instance.startTime,
|
|
'endTime': instance.endTime,
|
|
'showName': instance.showName,
|
|
'isProcessing': instance.isProcessing,
|
|
'trueEndTime': instance.trueEndTime,
|
|
};
|