| 1 | // GENERATED CODE - DO NOT MODIFY BY HAND |
| 2 | |
| 3 | part of 'flight_response_entity.dart'; |
| 4 | |
| 5 | // ************************************************************************** |
| 6 | // BuiltValueGenerator |
| 7 | // ************************************************************************** |
| 8 | |
| 9 | class _$FlightResponseEntity extends FlightResponseEntity |
| 10 | @override |
| 11 | final String id; |
| 12 | @override |
| 13 | final String flightNo; |
| 14 | @override |
| 15 | final String callSign; |
| 16 | @override |
| 17 | final AircraftEntity? aircraft; |
| 18 | @override |
| 19 | final PartialAirlineEntity airline; |
| 20 | @override |
| 21 | final RouteInfoEntity arrival; |
| 22 | @override |
| 23 | final RouteInfoEntity departure; |
| 24 | @override |
| 25 | final bool cargo; |
| 26 | @override |
| 27 | final StringifiedGreatCircleDistanceEntity greatCircleDistance; |
| 28 | @override |
| 29 | final DateTime date; |
| 30 | @override |
| 31 | final String? image; |
| 32 | @override |
| 33 | final FlightAwareDataEntity? flightAwareData; |
| 34 | @override |
| 35 | final BuiltList<FlightBookingEntity |
| 36 | |
| 37 | factory _$FlightResponseEntity( |
| 38 | [void Function(FlightResponseEntityBuilder |
| 39 | (FlightResponseEntityBuilder()..update(updates)). |
| 40 | |
| 41 | _$FlightResponseEntity._( |
| 42 | {required this.id, |
| 43 | required this.flightNo, |
| 44 | required this.callSign, |
| 45 | this.aircraft, |
| 46 | required this.airline, |
| 47 | required this.arrival, |
| 48 | required this.departure, |
| 49 | required this.cargo, |
| 50 | required this.greatCircleDistance, |
| 51 | required this.date, |
| 52 | this.image, |
| 53 | this.flightAwareData, |
| 54 | this.bookings}) |
| 55 | : super._(); |
| 56 | @override |
| 57 | FlightResponseEntity rebuild( |
| 58 | void Function(FlightResponseEntityBuilder |
| 59 | (toBuilder()..update(updates)). |
| 60 | |
| 61 | @override |
| 62 | FlightResponseEntityBuilder toBuilder() => |
| 63 | FlightResponseEntityBuilder()..replace(this |
| 64 | |
| 65 | @override |
| 66 | bool operator ==(Object |
| 67 | if (identical(other, this |
| 68 | return other is FlightResponseEntity |
| 69 | id == other.id && |
| 70 | flightNo == other.flightNo && |
| 71 | callSign == other.callSign && |
| 72 | aircraft == other.aircraft && |
| 73 | airline == other.airline && |
| 74 | arrival == other.arrival && |
| 75 | departure == other.departure && |
| 76 | cargo == other.cargo && |
| 77 | greatCircleDistance == other.greatCircleDistance && |
| 78 | date == other.date && |
| 79 | image == other.image && |
| 80 | flightAwareData == other.flightAwareData && |
| 81 | bookings == other.bookings; |
| 82 | } |
| 83 | |
| 84 | @override |
| 85 | int get hashCode { |
| 86 | var _$hash = 0; |
| 87 | _$hash = $jc(_$hash, id. |
| 88 | _$hash = $jc(_$hash, flightNo. |
| 89 | _$hash = $jc(_$hash, callSign. |
| 90 | _$hash = $jc(_$hash, aircraft. |
| 91 | _$hash = $jc(_$hash, airline. |
| 92 | _$hash = $jc(_$hash, arrival. |
| 93 | _$hash = $jc(_$hash, departure. |
| 94 | _$hash = $jc(_$hash, cargo. |
| 95 | _$hash = $jc(_$hash, greatCircleDistance. |
| 96 | _$hash = $jc(_$hash, date. |
| 97 | _$hash = $jc(_$hash, image. |
| 98 | _$hash = $jc(_$hash, flightAwareData. |
| 99 | _$hash = $jc(_$hash, bookings. |
| 100 | _$hash = $jf(_$hash); |
| 101 | return _$hash; |
| 102 | } |
| 103 | |
| 104 | @override |
| 105 | String toString() { |
| 106 | return (newBuiltValueToStringHelper(r'FlightResponseEntity') |
| 107 | ..add('id', id) |
| 108 | ..add('flightNo', flightNo) |
| 109 | ..add('callSign', callSign) |
| 110 | ..add('aircraft', aircraft) |
| 111 | ..add('airline', airline) |
| 112 | ..add('arrival', arrival) |
| 113 | ..add('departure', departure) |
| 114 | ..add('cargo', cargo) |
| 115 | ..add('greatCircleDistance', greatCircleDistance) |
| 116 | ..add('date', date) |
| 117 | ..add('image', image) |
| 118 | ..add('flightAwareData', flightAwareData) |
| 119 | ..add('bookings', bookings)) |
| 120 | .toString(); |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | class FlightResponseEntityBuilder |
| 125 | implements Builder<FlightResponseEntity, |
| 126 | _$FlightResponseEntity? _$v; |
| 127 | |
| 128 | String? _id; |
| 129 | String? get id => _$this |
| 130 | set id(String? |
| 131 | |
| 132 | String? _flightNo; |
| 133 | String? get flightNo => _$this |
| 134 | set flightNo(String? |
| 135 | |
| 136 | String? _callSign; |
| 137 | String? get callSign => _$this |
| 138 | set callSign(String? |
| 139 | |
| 140 | AircraftEntityBuilder? _aircraft; |
| 141 | AircraftEntityBuilder get aircraft => |
| 142 | _$this._aircraft ??= AircraftEntityBuilder() |
| 143 | set aircraft(AircraftEntityBuilder? |
| 144 | |
| 145 | PartialAirlineEntityBuilder? _airline; |
| 146 | PartialAirlineEntityBuilder get airline => |
| 147 | _$this._airline ??= PartialAirlineEntityBuilder() |
| 148 | set airline(PartialAirlineEntityBuilder? |
| 149 | _$this._airline = airline; |
| 150 | |
| 151 | RouteInfoEntityBuilder? _arrival; |
| 152 | RouteInfoEntityBuilder get arrival => |
| 153 | _$this._arrival ??= RouteInfoEntityBuilder() |
| 154 | set arrival(RouteInfoEntityBuilder? |
| 155 | |
| 156 | RouteInfoEntityBuilder? _departure; |
| 157 | RouteInfoEntityBuilder get departure => |
| 158 | _$this._departure ??= RouteInfoEntityBuilder() |
| 159 | set departure(RouteInfoEntityBuilder? |
| 160 | _$this._departure = departure; |
| 161 | |
| 162 | bool? _cargo; |
| 163 | bool? get cargo => _$this |
| 164 | set cargo(bool? |
| 165 | |
| 166 | StringifiedGreatCircleDistanceEntityBuilder? _greatCircleDistance; |
| 167 | StringifiedGreatCircleDistanceEntityBuilder get greatCircleDistance => |
| 168 | _$this._greatCircleDistance ??= |
| 169 | StringifiedGreatCircleDistanceEntityBuilder(); |
| 170 | set greatCircleDistance( |
| 171 | StringifiedGreatCircleDistanceEntityBuilder? greatCircleDistance) => |
| 172 | _$this._greatCircleDistance = greatCircleDistance; |
| 173 | |
| 174 | DateTime? _date; |
| 175 | DateTime? get date => _$this |
| 176 | set date(DateTime? |
| 177 | |
| 178 | String? _image; |
| 179 | String? get image => _$this |
| 180 | set image(String? |
| 181 | |
| 182 | FlightAwareDataEntityBuilder? _flightAwareData; |
| 183 | FlightAwareDataEntityBuilder get flightAwareData => |
| 184 | _$this._flightAwareData ??= FlightAwareDataEntityBuilder() |
| 185 | set flightAwareData(FlightAwareDataEntityBuilder? |
| 186 | _$this._flightAwareData = flightAwareData; |
| 187 | |
| 188 | ListBuilder<FlightBookingEntity>? _bookings |
| 189 | ListBuilder<FlightBookingEntity> get bookings |
| 190 | _$this._bookings ??= ListBuilder< |
| 191 | set bookings(ListBuilder< |
| 192 | _$this._bookings = bookings; |
| 193 | |
| 194 | FlightResponseEntityBuilder() { |
| 195 | FlightResponseEntity._defaults(this |
| 196 | } |
| 197 | |
| 198 | FlightResponseEntityBuilder get _$this { |
| 199 | final $v = _$v; |
| 200 | if ($v != null) { |
| 201 | _id = $v.id; |
| 202 | _flightNo = $v.flightNo; |
| 203 | _callSign = $v.callSign; |
| 204 | _aircraft = $v.aircraft?.toBuilder |
| 205 | _airline = $v.airline.toBuilder() |
| 206 | _arrival = $v.arrival.toBuilder() |
| 207 | _departure = $v.departure.toBuilder() |
| 208 | _cargo = $v.cargo; |
| 209 | _greatCircleDistance = $v.greatCircleDistance.toBuilder() |
| 210 | _date = $v.date; |
| 211 | _image = $v.image; |
| 212 | _flightAwareData = $v.flightAwareData?.toBuilder |
| 213 | _bookings = $v.bookings?.toBuilder |
| 214 | _$v = null; |
| 215 | } |
| 216 | return this; |
| 217 | } |
| 218 | |
| 219 | @override |
| 220 | void replace(FlightResponseEntity |
| 221 | _$v = other as _$FlightResponseEntity; |
| 222 | } |
| 223 | |
| 224 | @override |
| 225 | void update(void |
| 226 | if (updates != null) updates |
| 227 | } |
| 228 | |
| 229 | @override |
| 230 | FlightResponseEntity build() => |
| 231 | |
| 232 | _$FlightResponseEntity _build() { |
| 233 | _$FlightResponseEntity _$result; |
| 234 | try { |
| 235 | _$result = _$v ?? |
| 236 | _$FlightResponseEntity._( |
| 237 | id: BuiltValueNullFieldError.checkNotNull( |
| 238 | id, r'FlightResponseEntity', 'id'), |
| 239 | flightNo: BuiltValueNullFieldError.checkNotNull( |
| 240 | flightNo, r'FlightResponseEntity', 'flightNo'), |
| 241 | callSign: BuiltValueNullFieldError.checkNotNull( |
| 242 | callSign, r'FlightResponseEntity', 'callSign'), |
| 243 | aircraft: _aircraft?.build(), |
| 244 | airline: airline.build(), |
| 245 | arrival: arrival.build(), |
| 246 | departure: departure.build(), |
| 247 | cargo: BuiltValueNullFieldError.checkNotNull( |
| 248 | cargo, r'FlightResponseEntity', 'cargo'), |
| 249 | greatCircleDistance: greatCircleDistance.build(), |
| 250 | date: BuiltValueNullFieldError.checkNotNull( |
| 251 | date, r'FlightResponseEntity', 'date'), |
| 252 | image: image, |
| 253 | flightAwareData: _flightAwareData?.build(), |
| 254 | bookings: _bookings?.build(), |
| 255 | ); |
| 256 | } catch (_) { |
| 257 | late String _$failedField; |
| 258 | try { |
| 259 | _$failedField = 'aircraft'; |
| 260 | _aircraft?.build(); |
| 261 | _$failedField = 'airline'; |
| 262 | airline.build(); |
| 263 | _$failedField = 'arrival'; |
| 264 | arrival.build(); |
| 265 | _$failedField = 'departure'; |
| 266 | departure.build(); |
| 267 | |
| 268 | _$failedField = 'greatCircleDistance'; |
| 269 | greatCircleDistance.build(); |
| 270 | |
| 271 | _$failedField = 'flightAwareData'; |
| 272 | _flightAwareData?.build(); |
| 273 | _$failedField = 'bookings'; |
| 274 | _bookings?.build(); |
| 275 | } catch (e) { |
| 276 | throw BuiltValueNestedFieldError( |
| 277 | r'FlightResponseEntity', _$failedField, e.toString |
| 278 | } |
| 279 | rethrow; |
| 280 | } |
| 281 | replace(_$result); |
| 282 | return _$result; |
| 283 | } |
| 284 | } |
| 285 | |
| 286 | // ignore_for_file: deprecated_member_use_from_same_package,type=lint |