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.
app/lib/models/promotion_list_model.g.dart

44 lines
1.3 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)
?.map((e) =>
e == null ? null : 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);
}
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
};