Last changes not published
This commit is contained in:
parent
ac65ccf990
commit
21ec08303a
43 changed files with 607 additions and 613 deletions
|
|
@ -1,5 +1,3 @@
|
|||
// Copyright (c) 2018, Comunes Association.
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'appState.dart';
|
||||
|
|
@ -8,37 +6,30 @@ part of 'appState.dart';
|
|||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
AppState _$AppStateFromJson(Map<String, dynamic> json) => new AppState(
|
||||
yourLocations: (json['yourLocations'] as List)
|
||||
.map((e) => new YourLocation.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
fireNotifications: (json['fireNotifications'] as List)
|
||||
.map((e) => new FireNotification.fromJson(e as Map<String, dynamic>))
|
||||
.toList());
|
||||
|
||||
abstract class _$AppStateSerializerMixin {
|
||||
List<YourLocation> get yourLocations;
|
||||
List<FireNotification> get fireNotifications;
|
||||
Map<String, dynamic> toJson() => new _$AppStateJsonMapWrapper(this);
|
||||
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;
|
||||
});
|
||||
}
|
||||
|
||||
class _$AppStateJsonMapWrapper extends $JsonMapWrapper {
|
||||
final _$AppStateSerializerMixin _v;
|
||||
_$AppStateJsonMapWrapper(this._v);
|
||||
|
||||
@override
|
||||
Iterable<String> get keys => const ['yourLocations', 'fireNotifications'];
|
||||
|
||||
@override
|
||||
dynamic operator [](Object key) {
|
||||
if (key is String) {
|
||||
switch (key) {
|
||||
case 'yourLocations':
|
||||
return _v.yourLocations;
|
||||
case 'fireNotifications':
|
||||
return _v.fireNotifications;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Map<String, dynamic> _$AppStateToJson(AppState instance) => <String, dynamic>{
|
||||
'yourLocations': instance.yourLocations.map((e) => e.toJson()).toList(),
|
||||
'fireNotifications':
|
||||
instance.fireNotifications.map((e) => e.toJson()).toList(),
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue