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