| 1 | // GENERATED CODE - DO NOT MODIFY BY HAND |
| 2 | |
| 3 | part of 'flight_entity.dart'; |
| 4 | |
| 5 | // ************************************************************************** |
| 6 | // BuiltValueGenerator |
| 7 | // ************************************************************************** |
| 8 | |
| 9 | class _$FlightEntity extends FlightEntity |
| 10 | @override |
| 11 | final AirlineInfo airline; |
| 12 | @override |
| 13 | final AircraftFlightEntity flight; |
| 14 | @override |
| 15 | final AirportInfo departure; |
| 16 | @override |
| 17 | final AirportInfo arrival; |
| 18 | @override |
| 19 | final FlightStatus status; |
| 20 | @override |
| 21 | final FlighType type; |
| 22 | @override |
| 23 | final JsonObject? codeshared; |
| 24 | |
| 25 | factory _$FlightEntity([void |
| 26 | (FlightEntityBuilder()..update(updates)). |
| 27 | |
| 28 | _$FlightEntity._( |
| 29 | {required this.airline, |
| 30 | required this.flight, |
| 31 | required this.departure, |
| 32 | required this.arrival, |
| 33 | required this.status, |
| 34 | required this.type, |
| 35 | this.codeshared}) |
| 36 | : super._(); |
| 37 | @override |
| 38 | FlightEntity rebuild(void |
| 39 | (toBuilder()..update(updates)). |
| 40 | |
| 41 | @override |
| 42 | FlightEntityBuilder toBuilder() => |
| 43 | |
| 44 | @override |
| 45 | bool operator ==(Object |
| 46 | if (identical(other, this |
| 47 | return other is FlightEntity |
| 48 | airline == other.airline && |
| 49 | flight == other.flight && |
| 50 | departure == other.departure && |
| 51 | arrival == other.arrival && |
| 52 | status == other.status && |
| 53 | type == other.type && |
| 54 | codeshared == other.codeshared; |
| 55 | } |
| 56 | |
| 57 | @override |
| 58 | int get hashCode { |
| 59 | var _$hash = 0; |
| 60 | _$hash = $jc(_$hash, airline. |
| 61 | _$hash = $jc(_$hash, flight. |
| 62 | _$hash = $jc(_$hash, departure. |
| 63 | _$hash = $jc(_$hash, arrival. |
| 64 | _$hash = $jc(_$hash, status. |
| 65 | _$hash = $jc(_$hash, type. |
| 66 | _$hash = $jc(_$hash, codeshared. |
| 67 | _$hash = $jf(_$hash); |
| 68 | return _$hash; |
| 69 | } |
| 70 | |
| 71 | @override |
| 72 | String toString() { |
| 73 | return (newBuiltValueToStringHelper(r'FlightEntity') |
| 74 | ..add('airline', airline) |
| 75 | ..add('flight', flight) |
| 76 | ..add('departure', departure) |
| 77 | ..add('arrival', arrival) |
| 78 | ..add('status', status) |
| 79 | ..add('type', type) |
| 80 | ..add('codeshared', codeshared)) |
| 81 | .toString(); |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | class FlightEntityBuilder |
| 86 | implements Builder<FlightEntity, |
| 87 | _$FlightEntity? _$v; |
| 88 | |
| 89 | AirlineInfoBuilder? _airline; |
| 90 | AirlineInfoBuilder get airline => _$this. |
| 91 | set airline(AirlineInfoBuilder? |
| 92 | |
| 93 | AircraftFlightEntityBuilder? _flight; |
| 94 | AircraftFlightEntityBuilder get flight => |
| 95 | _$this._flight ??= AircraftFlightEntityBuilder() |
| 96 | set flight(AircraftFlightEntityBuilder? |
| 97 | |
| 98 | AirportInfoBuilder? _departure; |
| 99 | AirportInfoBuilder get departure => |
| 100 | _$this._departure ??= AirportInfoBuilder() |
| 101 | set departure(AirportInfoBuilder? |
| 102 | |
| 103 | AirportInfoBuilder? _arrival; |
| 104 | AirportInfoBuilder get arrival => _$this. |
| 105 | set arrival(AirportInfoBuilder? |
| 106 | |
| 107 | FlightStatus? _status; |
| 108 | FlightStatus? get status => _$this |
| 109 | set status(FlightStatus? |
| 110 | |
| 111 | FlighType? _type; |
| 112 | FlighType? get type => _$this |
| 113 | set type(FlighType? |
| 114 | |
| 115 | JsonObject? _codeshared; |
| 116 | JsonObject? get codeshared => _$this |
| 117 | set codeshared(JsonObject? |
| 118 | |
| 119 | FlightEntityBuilder() { |
| 120 | FlightEntity._defaults(this |
| 121 | } |
| 122 | |
| 123 | FlightEntityBuilder get _$this { |
| 124 | final $v = _$v; |
| 125 | if ($v != null) { |
| 126 | _airline = $v.airline.toBuilder() |
| 127 | _flight = $v.flight.toBuilder() |
| 128 | _departure = $v.departure.toBuilder() |
| 129 | _arrival = $v.arrival.toBuilder() |
| 130 | _status = $v.status; |
| 131 | _type = $v.type; |
| 132 | _codeshared = $v.codeshared; |
| 133 | _$v = null; |
| 134 | } |
| 135 | return this; |
| 136 | } |
| 137 | |
| 138 | @override |
| 139 | void replace(FlightEntity |
| 140 | _$v = other as _$FlightEntity; |
| 141 | } |
| 142 | |
| 143 | @override |
| 144 | void update(void |
| 145 | if (updates != null) updates |
| 146 | } |
| 147 | |
| 148 | @override |
| 149 | FlightEntity build() => |
| 150 | |
| 151 | _$FlightEntity _build() { |
| 152 | _$FlightEntity _$result; |
| 153 | try { |
| 154 | _$result = _$v ?? |
| 155 | _$FlightEntity._( |
| 156 | airline: airline.build(), |
| 157 | flight: flight.build(), |
| 158 | departure: departure.build(), |
| 159 | arrival: arrival.build(), |
| 160 | status: BuiltValueNullFieldError.checkNotNull( |
| 161 | status, r'FlightEntity', 'status'), |
| 162 | type: BuiltValueNullFieldError.checkNotNull( |
| 163 | type, r'FlightEntity', 'type'), |
| 164 | codeshared: codeshared, |
| 165 | ); |
| 166 | } catch (_) { |
| 167 | late String _$failedField; |
| 168 | try { |
| 169 | _$failedField = 'airline'; |
| 170 | airline.build(); |
| 171 | _$failedField = 'flight'; |
| 172 | flight.build(); |
| 173 | _$failedField = 'departure'; |
| 174 | departure.build(); |
| 175 | _$failedField = 'arrival'; |
| 176 | arrival.build(); |
| 177 | } catch (e) { |
| 178 | throw BuiltValueNestedFieldError( |
| 179 | r'FlightEntity', _$failedField, e.toString |
| 180 | } |
| 181 | rethrow; |
| 182 | } |
| 183 | replace(_$result); |
| 184 | return _$result; |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | // ignore_for_file: deprecated_member_use_from_same_package,type=lint |