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