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