| 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/aircraft_registration_entity.dart'; |
| 20 | import 'package:openapi/src/model/aircraft_stats_entity.dart'; |
| 21 | import 'package:openapi/src/model/aircraft_with_age.dart'; |
| 22 | import 'package:openapi/src/model/airline_entity.dart'; |
| 23 | import 'package:openapi/src/model/airline_info.dart'; |
| 24 | import 'package:openapi/src/model/airline_stats_entity.dart'; |
| 25 | import 'package:openapi/src/model/airport_entity.dart'; |
| 26 | import 'package:openapi/src/model/airport_info.dart'; |
| 27 | import 'package:openapi/src/model/airport_stats_entity.dart'; |
| 28 | import 'package:openapi/src/model/airport_type.dart'; |
| 29 | import 'package:openapi/src/model/create_flight_booking_dto.dart'; |
| 30 | import 'package:openapi/src/model/fligh_type.dart'; |
| 31 | import 'package:openapi/src/model/flight_aware_data_entity.dart'; |
| 32 | import 'package:openapi/src/model/flight_booking_entity.dart'; |
| 33 | import 'package:openapi/src/model/flight_candidate_entity.dart'; |
| 34 | import 'package:openapi/src/model/flight_controller_delete_flight_booking_v1200_response.dart'; |
| 35 | import 'package:openapi/src/model/flight_distance_entity.dart'; |
| 36 | import 'package:openapi/src/model/flight_duration_entity.dart'; |
| 37 | import 'package:openapi/src/model/flight_entity.dart'; |
| 38 | import 'package:openapi/src/model/flight_position_entity.dart'; |
| 39 | import 'package:openapi/src/model/flight_response_entity.dart'; |
| 40 | import 'package:openapi/src/model/flight_search_response_entity.dart'; |
| 41 | import 'package:openapi/src/model/flight_status.dart'; |
| 42 | import 'package:openapi/src/model/flight_summary_airline_entity.dart'; |
| 43 | import 'package:openapi/src/model/flight_summary_destination_entity.dart'; |
| 44 | import 'package:openapi/src/model/flight_summary_entity.dart'; |
| 45 | import 'package:openapi/src/model/flight_summary_origin_entity.dart'; |
| 46 | import 'package:openapi/src/model/flight_track_response_entity.dart'; |
| 47 | import 'package:openapi/src/model/flights_controller_get_flights_in_bounds_v1200_response.dart'; |
| 48 | import 'package:openapi/src/model/flights_controller_get_flights_in_bounds_v1200_response_bounds.dart'; |
| 49 | import 'package:openapi/src/model/flights_controller_get_flights_in_bounds_v1200_response_flights_inner.dart'; |
| 50 | import 'package:openapi/src/model/flights_controller_get_flights_in_bounds_v1200_response_flights_inner_origin.dart'; |
| 51 | import 'package:openapi/src/model/flights_response_entity.dart'; |
| 52 | import 'package:openapi/src/model/flights_route_entity.dart'; |
| 53 | import 'package:openapi/src/model/generic_error_entity.dart'; |
| 54 | import 'package:openapi/src/model/get_airline_dto.dart'; |
| 55 | import 'package:openapi/src/model/location_entity.dart'; |
| 56 | import 'package:openapi/src/model/login_dto.dart'; |
| 57 | import 'package:openapi/src/model/login_entity.dart'; |
| 58 | import 'package:openapi/src/model/most_flown_aircraft_entity.dart'; |
| 59 | import 'package:openapi/src/model/partial_airline_entity.dart'; |
| 60 | import 'package:openapi/src/model/passport_entity.dart'; |
| 61 | import 'package:openapi/src/model/profile_stats_response_entity.dart'; |
| 62 | import 'package:openapi/src/model/register_dto.dart'; |
| 63 | import 'package:openapi/src/model/register_entity.dart'; |
| 64 | import 'package:openapi/src/model/route_airport_entity.dart'; |
| 65 | import 'package:openapi/src/model/route_info_entity.dart'; |
| 66 | import 'package:openapi/src/model/stringified_great_circle_distance_entity.dart'; |
| 67 | import 'package:openapi/src/model/time_entity.dart'; |
| 68 | import 'package:openapi/src/model/top_route_entity.dart'; |
| 69 | import 'package:openapi/src/model/tracked_flights_response_entity.dart'; |
| 70 | import 'package:openapi/src/model/update_flight_booking_dto.dart'; |
| 71 | import 'package:openapi/src/model/user_entity.dart'; |
| 72 | |
| 73 | part 'serializers.g.dart'; |
| 74 | |
| 75 | @SerializersFor([ |
| 76 | AircraftEntity, |
| 77 | AircraftFlightEntity, |
| 78 | AircraftRegistrationEntity, |
| 79 | AircraftStatsEntity, |
| 80 | AircraftWithAge, |
| 81 | AirlineEntity, |
| 82 | AirlineInfo, |
| 83 | AirlineStatsEntity, |
| 84 | AirportEntity, |
| 85 | AirportInfo, |
| 86 | AirportStatsEntity, |
| 87 | AirportType, |
| 88 | CreateFlightBookingDTO, |
| 89 | FlighType, |
| 90 | FlightAwareDataEntity, |
| 91 | FlightBookingEntity, |
| 92 | FlightCandidateEntity, |
| 93 | FlightControllerDeleteFlightBookingV1200Response, |
| 94 | FlightDistanceEntity, |
| 95 | FlightDurationEntity, |
| 96 | FlightEntity, |
| 97 | FlightPositionEntity, |
| 98 | FlightResponseEntity, |
| 99 | FlightSearchResponseEntity, |
| 100 | FlightStatus, |
| 101 | FlightSummaryAirlineEntity, |
| 102 | FlightSummaryDestinationEntity, |
| 103 | FlightSummaryEntity, |
| 104 | FlightSummaryOriginEntity, |
| 105 | FlightTrackResponseEntity, |
| 106 | FlightsControllerGetFlightsInBoundsV1200Response, |
| 107 | FlightsControllerGetFlightsInBoundsV1200ResponseBounds, |
| 108 | FlightsControllerGetFlightsInBoundsV1200ResponseFlightsInner, |
| 109 | FlightsControllerGetFlightsInBoundsV1200ResponseFlightsInnerOrigin, |
| 110 | FlightsResponseEntity, |
| 111 | FlightsRouteEntity, |
| 112 | GenericErrorEntity, |
| 113 | GetAirlineDTO, |
| 114 | LocationEntity, |
| 115 | LoginDTO, |
| 116 | LoginEntity, |
| 117 | MostFlownAircraftEntity, |
| 118 | PartialAirlineEntity, |
| 119 | PassportEntity, |
| 120 | ProfileStatsResponseEntity, |
| 121 | RegisterDTO, |
| 122 | RegisterEntity, |
| 123 | RouteAirportEntity, |
| 124 | RouteInfoEntity, |
| 125 | StringifiedGreatCircleDistanceEntity, |
| 126 | TimeEntity, |
| 127 | TopRouteEntity, |
| 128 | TrackedFlightsResponseEntity, |
| 129 | UpdateFlightBookingDTO, |
| 130 | UserEntity, |
| 131 | ]) |
| 132 | Serializers serializers = (_$serializers.toBuilder() |
| 133 | ..addBuilderFactory( |
| 134 | const FullType(BuiltList |
| 135 | () => ListBuilder<AirlineEntity>() |
| 136 | ) |
| 137 | ..addBuilderFactory( |
| 138 | const FullType(BuiltList |
| 139 | () => ListBuilder<AirportEntity>() |
| 140 | ) |
| 141 | ..addBuilderFactory( |
| 142 | const FullType(BuiltList |
| 143 | () => ListBuilder<FlightBookingEntity>() |
| 144 | ) |
| 145 | ..add(const OneOfSerializer |
| 146 | ..add(const AnyOfSerializer |
| 147 | ..add(const DateSerializer |
| 148 | ..add(Iso8601DateTimeSerializer()) |
| 149 | ).build(); |
| 150 | |
| 151 | Serializers standardSerializers = |
| 152 | (serializers.toBuilder()..addPlugin( |