| 1 | // GENERATED CODE - DO NOT MODIFY BY HAND |
| 2 | |
| 3 | part of 'flight_duration_entity.dart'; |
| 4 | |
| 5 | // ************************************************************************** |
| 6 | // BuiltValueGenerator |
| 7 | // ************************************************************************** |
| 8 | |
| 9 | class _$FlightDurationEntity extends FlightDurationEntity |
| 10 | @override |
| 11 | final FlightSummaryEntity flight; |
| 12 | @override |
| 13 | final num durationMinutes; |
| 14 | |
| 15 | factory _$FlightDurationEntity( |
| 16 | [void Function(FlightDurationEntityBuilder |
| 17 | (FlightDurationEntityBuilder()..update(updates)). |
| 18 | |
| 19 | _$FlightDurationEntity._( |
| 20 | {required this.flight, |
| 21 | : super._(); |
| 22 | @override |
| 23 | FlightDurationEntity rebuild( |
| 24 | void Function(FlightDurationEntityBuilder |
| 25 | (toBuilder()..update(updates)). |
| 26 | |
| 27 | @override |
| 28 | FlightDurationEntityBuilder toBuilder() => |
| 29 | FlightDurationEntityBuilder()..replace(this |
| 30 | |
| 31 | @override |
| 32 | bool operator ==(Object |
| 33 | if (identical(other, this |
| 34 | return other is FlightDurationEntity |
| 35 | flight == other.flight && |
| 36 | durationMinutes == other.durationMinutes; |
| 37 | } |
| 38 | |
| 39 | @override |
| 40 | int get hashCode { |
| 41 | var _$hash = 0; |
| 42 | _$hash = $jc(_$hash, flight. |
| 43 | _$hash = $jc(_$hash, durationMinutes. |
| 44 | _$hash = $jf(_$hash); |
| 45 | return _$hash; |
| 46 | } |
| 47 | |
| 48 | @override |
| 49 | String toString() { |
| 50 | return (newBuiltValueToStringHelper(r'FlightDurationEntity') |
| 51 | ..add('flight', flight) |
| 52 | ..add('durationMinutes', durationMinutes)) |
| 53 | .toString(); |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | class FlightDurationEntityBuilder |
| 58 | implements Builder<FlightDurationEntity, |
| 59 | _$FlightDurationEntity? _$v; |
| 60 | |
| 61 | FlightSummaryEntityBuilder? _flight; |
| 62 | FlightSummaryEntityBuilder get flight => |
| 63 | _$this._flight ??= FlightSummaryEntityBuilder() |
| 64 | set flight(FlightSummaryEntityBuilder? |
| 65 | |
| 66 | num? _durationMinutes; |
| 67 | num? get durationMinutes => _$this |
| 68 | set durationMinutes(num? |
| 69 | _$this._durationMinutes = durationMinutes; |
| 70 | |
| 71 | FlightDurationEntityBuilder() { |
| 72 | FlightDurationEntity._defaults(this |
| 73 | } |
| 74 | |
| 75 | FlightDurationEntityBuilder get _$this { |
| 76 | final $v = _$v; |
| 77 | if ($v != null) { |
| 78 | _flight = $v.flight.toBuilder() |
| 79 | _durationMinutes = $v.durationMinutes; |
| 80 | _$v = null; |
| 81 | } |
| 82 | return this; |
| 83 | } |
| 84 | |
| 85 | @override |
| 86 | void replace(FlightDurationEntity |
| 87 | _$v = other as _$FlightDurationEntity; |
| 88 | } |
| 89 | |
| 90 | @override |
| 91 | void update(void |
| 92 | if (updates != null) updates |
| 93 | } |
| 94 | |
| 95 | @override |
| 96 | FlightDurationEntity build() => |
| 97 | |
| 98 | _$FlightDurationEntity _build() { |
| 99 | _$FlightDurationEntity _$result; |
| 100 | try { |
| 101 | _$result = _$v ?? |
| 102 | _$FlightDurationEntity._( |
| 103 | flight: flight.build(), |
| 104 | durationMinutes: BuiltValueNullFieldError.checkNotNull( |
| 105 | durationMinutes, r'FlightDurationEntity', 'durationMinutes'), |
| 106 | ); |
| 107 | } catch (_) { |
| 108 | late String _$failedField; |
| 109 | try { |
| 110 | _$failedField = 'flight'; |
| 111 | flight.build(); |
| 112 | } catch (e) { |
| 113 | throw BuiltValueNestedFieldError( |
| 114 | r'FlightDurationEntity', _$failedField, e.toString |
| 115 | } |
| 116 | rethrow; |
| 117 | } |
| 118 | replace(_$result); |
| 119 | return _$result; |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | // ignore_for_file: deprecated_member_use_from_same_package,type=lint |