36 lines
1.4 KiB
Dart
36 lines
1.4 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'fireNotification.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
FireNotification _$FireNotificationFromJson(Map json) {
|
|
return $checkedNew('FireNotification', json, () {
|
|
final val = FireNotification(
|
|
id: $checkedConvert(json, 'id', (v) => objectIdFromJson(v as String)),
|
|
lat: $checkedConvert(json, 'lat', (v) => (v as num).toDouble()),
|
|
lon: $checkedConvert(json, 'lon', (v) => (v as num).toDouble()),
|
|
description: $checkedConvert(json, 'description', (v) => v as String),
|
|
when: $checkedConvert(json, 'when', (v) => DateTime.parse(v as String)),
|
|
read: $checkedConvert(json, 'read', (v) => v as bool),
|
|
sealed: $checkedConvert(json, 'sealed', (v) => v as String),
|
|
subsId:
|
|
$checkedConvert(json, 'subsId', (v) => objectIdFromJson(v as String)),
|
|
);
|
|
return val;
|
|
});
|
|
}
|
|
|
|
Map<String, dynamic> _$FireNotificationToJson(FireNotification instance) =>
|
|
<String, dynamic>{
|
|
'id': objectIdToJson(instance.id),
|
|
'lat': instance.lat,
|
|
'lon': instance.lon,
|
|
'description': instance.description,
|
|
'when': instance.when.toIso8601String(),
|
|
'sealed': instance.sealed,
|
|
'subsId': objectIdToJson(instance.subsId),
|
|
'read': instance.read,
|
|
};
|