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