58 lines
2.3 KiB
Dart
58 lines
2.3 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'broadcast_entity.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
BroadcastEntity _$BroadcastEntityFromJson(Map<String, dynamic> json) =>
|
|
BroadcastEntity(
|
|
id: (json['id'] as num?)?.toInt(),
|
|
content: json['content'] as String,
|
|
broadcastCount: (json['broadcastCount'] as num).toInt(),
|
|
broadcastMaxCount: (json['broadcastMaxCount'] as num).toInt(),
|
|
isBroadcast: json['isBroadcast'] as bool,
|
|
isDone: json['isDone'] as bool,
|
|
createTime: DateTime.parse(json['createTime'] as String),
|
|
serviceCode: json['serviceCode'] as String,
|
|
serviceOrderCode: json['serviceOrderCode'] as String,
|
|
userId: json['userId'] as String,
|
|
username: json['username'] as String,
|
|
userMobile: json['userMobile'] as String,
|
|
productDesc: json['productDesc'] as String,
|
|
payPrice: (json['payPrice'] as num).toInt(),
|
|
hourType: $enumDecodeNullable(_$ProductHourTypeEnumMap, json['hourType']),
|
|
enable: json['enable'] as bool,
|
|
)..isDoneTime = json['isDoneTime'] == null
|
|
? null
|
|
: DateTime.parse(json['isDoneTime'] as String);
|
|
|
|
Map<String, dynamic> _$BroadcastEntityToJson(BroadcastEntity instance) =>
|
|
<String, dynamic>{
|
|
'id': instance.id,
|
|
'content': instance.content,
|
|
'broadcastCount': instance.broadcastCount,
|
|
'broadcastMaxCount': instance.broadcastMaxCount,
|
|
'isBroadcast': instance.isBroadcast,
|
|
'isDone': instance.isDone,
|
|
'isDoneTime': instance.isDoneTime?.toIso8601String(),
|
|
'serviceCode': instance.serviceCode,
|
|
'serviceOrderCode': instance.serviceOrderCode,
|
|
'userId': instance.userId,
|
|
'username': instance.username,
|
|
'userMobile': instance.userMobile,
|
|
'productDesc': instance.productDesc,
|
|
'payPrice': instance.payPrice,
|
|
'hourType': _$ProductHourTypeEnumMap[instance.hourType],
|
|
'enable': instance.enable,
|
|
'createTime': instance.createTime.toIso8601String(),
|
|
};
|
|
|
|
const _$ProductHourTypeEnumMap = {
|
|
ProductHourType.TOTAL: 'TOTAL',
|
|
ProductHourType.MORNING: 'MORNING',
|
|
ProductHourType.NOON: 'NOON',
|
|
ProductHourType.NIGHT: 'NIGHT',
|
|
};
|