35 lines
1.1 KiB
Dart
35 lines
1.1 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'appState.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
AppState _$AppStateFromJson(Map json) {
|
|
return $checkedNew('AppState', json, () {
|
|
final val = AppState(
|
|
yourLocations: $checkedConvert(
|
|
json,
|
|
'yourLocations',
|
|
(v) => (v as List)
|
|
.map((e) =>
|
|
YourLocation.fromJson(Map<String, dynamic>.from(e as Map)))
|
|
.toList()),
|
|
fireNotifications: $checkedConvert(
|
|
json,
|
|
'fireNotifications',
|
|
(v) => (v as List)
|
|
.map((e) => FireNotification.fromJson(
|
|
Map<String, dynamic>.from(e as Map)))
|
|
.toList()),
|
|
);
|
|
return val;
|
|
});
|
|
}
|
|
|
|
Map<String, dynamic> _$AppStateToJson(AppState instance) => <String, dynamic>{
|
|
'yourLocations': instance.yourLocations.map((e) => e.toJson()).toList(),
|
|
'fireNotifications':
|
|
instance.fireNotifications.map((e) => e.toJson()).toList(),
|
|
};
|