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