| 1 | // GENERATED CODE - DO NOT MODIFY BY HAND |
| 2 | |
| 3 | part of 'flight.dart'; |
| 4 | |
| 5 | // ************************************************************************** |
| 6 | // JsonSerializableGenerator |
| 7 | // ************************************************************************** |
| 8 | |
| 9 | Flight _$FlightFromJson(Map< |
| 10 | id: json['id'] as String |
| 11 | date: DateTime.parse(json[ |
| 12 | arrival: Map<String, |
| 13 | airline: Map<String, |
| 14 | codeshared: json['codeshared'], |
| 15 | departure: Map<String, |
| 16 | flight: Map<String, |
| 17 | type: $enumDecode(_$FlightTypeEnumMap, |
| 18 | ); |
| 19 | |
| 20 | Map<String, dynamic> |
| 21 | 'id': instance.id, |
| 22 | 'date': instance.date.toIso8601String |
| 23 | 'airline': instance.airline, |
| 24 | 'arrival': instance.arrival, |
| 25 | 'codeshared': instance.codeshared, |
| 26 | 'departure': instance.departure, |
| 27 | 'flight': instance.flight, |
| 28 | 'type': _$FlightTypeEnumMap[instance.type] |
| 29 | }; |
| 30 | |
| 31 | const _$FlightTypeEnumMap = { |
| 32 | FlightType.arrival: 'arrival', |
| 33 | FlightType.departure: 'departure', |
| 34 | }; |