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