| 1 | // |
| 2 | // AUTO-GENERATED FILE, DO NOT MODIFY! |
| 3 | // |
| 4 | |
| 5 | // ignore_for_file: unused_import |
| 6 | |
| 7 | import 'package:one_of_serializer/any_of_serializer.dart'; |
| 8 | import 'package:one_of_serializer/one_of_serializer.dart'; |
| 9 | import 'package:built_collection/built_collection.dart'; |
| 10 | import 'package:built_value/json_object.dart'; |
| 11 | import 'package:built_value/serializer.dart'; |
| 12 | import 'package:built_value/standard_json_plugin.dart'; |
| 13 | import 'package:built_value/iso_8601_date_time_serializer.dart'; |
| 14 | import 'package:openapi/src/date_serializer.dart'; |
| 15 | import 'package:openapi/src/model/date.dart'; |
| 16 | |
| 17 | import 'package:openapi/src/model/aircraft_entity.dart'; |
| 18 | import 'package:openapi/src/model/aircraft_flight_entity.dart'; |
| 19 | import 'package:openapi/src/model/airline_entity.dart'; |
| 20 | import 'package:openapi/src/model/airline_info.dart'; |
| 21 | import 'package:openapi/src/model/airport_entity.dart'; |
| 22 | import 'package:openapi/src/model/airport_info.dart'; |
| 23 | import 'package:openapi/src/model/airport_type.dart'; |
| 24 | import 'package:openapi/src/model/fligh_type.dart'; |
| 25 | import 'package:openapi/src/model/flight_entity.dart'; |
| 26 | import 'package:openapi/src/model/flight_response_entity.dart'; |
| 27 | import 'package:openapi/src/model/flight_status.dart'; |
| 28 | import 'package:openapi/src/model/flights_controller_get_flights_in_bounds_v1200_response.dart'; |
| 29 | import 'package:openapi/src/model/flights_controller_get_flights_in_bounds_v1200_response_bounds.dart'; |
| 30 | import 'package:openapi/src/model/flights_controller_get_flights_in_bounds_v1200_response_flights_inner.dart'; |
| 31 | import 'package:openapi/src/model/flights_controller_get_flights_in_bounds_v1200_response_flights_inner_origin.dart'; |
| 32 | import 'package:openapi/src/model/flights_response_entity.dart'; |
| 33 | import 'package:openapi/src/model/flights_route_entity.dart'; |
| 34 | import 'package:openapi/src/model/generic_error_entity.dart'; |
| 35 | import 'package:openapi/src/model/get_airline_dto.dart'; |
| 36 | import 'package:openapi/src/model/location_entity.dart'; |
| 37 | import 'package:openapi/src/model/login_dto.dart'; |
| 38 | import 'package:openapi/src/model/login_entity.dart'; |
| 39 | import 'package:openapi/src/model/partial_airline_entity.dart'; |
| 40 | import 'package:openapi/src/model/register_dto.dart'; |
| 41 | import 'package:openapi/src/model/register_entity.dart'; |
| 42 | import 'package:openapi/src/model/route_airport_entity.dart'; |
| 43 | import 'package:openapi/src/model/route_info_entity.dart'; |
| 44 | import 'package:openapi/src/model/stringified_great_circle_distance_entity.dart'; |
| 45 | import 'package:openapi/src/model/time_entity.dart'; |
| 46 | import 'package:openapi/src/model/user_entity.dart'; |
| 47 | |
| 48 | part 'serializers.g.dart'; |
| 49 | |
| 50 | @SerializersFor([ |
| 51 | AircraftEntity, |
| 52 | AircraftFlightEntity, |
| 53 | AirlineEntity, |
| 54 | AirlineInfo, |
| 55 | AirportEntity, |
| 56 | AirportInfo, |
| 57 | AirportType, |
| 58 | FlighType, |
| 59 | FlightEntity, |
| 60 | FlightResponseEntity, |
| 61 | FlightStatus, |
| 62 | FlightsControllerGetFlightsInBoundsV1200Response, |
| 63 | FlightsControllerGetFlightsInBoundsV1200ResponseBounds, |
| 64 | FlightsControllerGetFlightsInBoundsV1200ResponseFlightsInner, |
| 65 | FlightsControllerGetFlightsInBoundsV1200ResponseFlightsInnerOrigin, |
| 66 | FlightsResponseEntity, |
| 67 | FlightsRouteEntity, |
| 68 | GenericErrorEntity, |
| 69 | GetAirlineDTO, |
| 70 | LocationEntity, |
| 71 | LoginDTO, |
| 72 | LoginEntity, |
| 73 | PartialAirlineEntity, |
| 74 | RegisterDTO, |
| 75 | RegisterEntity, |
| 76 | RouteAirportEntity, |
| 77 | RouteInfoEntity, |
| 78 | StringifiedGreatCircleDistanceEntity, |
| 79 | TimeEntity, |
| 80 | UserEntity, |
| 81 | ]) |
| 82 | Serializers serializers = (_$serializers.toBuilder() |
| 83 | ..addBuilderFactory( |
| 84 | const FullType(BuiltList |
| 85 | () => ListBuilder<AirlineEntity>() |
| 86 | ) |
| 87 | ..addBuilderFactory( |
| 88 | const FullType(BuiltList |
| 89 | () => ListBuilder<AirportEntity>() |
| 90 | ) |
| 91 | ..add(const OneOfSerializer |
| 92 | ..add(const AnyOfSerializer |
| 93 | ..add(const DateSerializer |
| 94 | ..add(Iso8601DateTimeSerializer()) |
| 95 | ).build(); |
| 96 | |
| 97 | Serializers standardSerializers = |
| 98 | (serializers.toBuilder()..addPlugin( |