| 1 | // GENERATED CODE - DO NOT MODIFY BY HAND |
| 2 | |
| 3 | part of 'profile_stats_response_entity.dart'; |
| 4 | |
| 5 | // ************************************************************************** |
| 6 | // BuiltValueGenerator |
| 7 | // ************************************************************************** |
| 8 | |
| 9 | class _$ProfileStatsResponseEntity extends ProfileStatsResponseEntity |
| 10 | @override |
| 11 | final MostFlownAircraftEntity mostFlownAircraft; |
| 12 | @override |
| 13 | final AircraftStatsEntity? aircraftStats; |
| 14 | @override |
| 15 | final PassportEntity passport; |
| 16 | @override |
| 17 | final FlightDistanceEntity shortestDistanceFlight; |
| 18 | @override |
| 19 | final FlightDistanceEntity longestDistanceFlight; |
| 20 | @override |
| 21 | final FlightDurationEntity shortestDurationFlight; |
| 22 | @override |
| 23 | final FlightDurationEntity longestDurationFlight; |
| 24 | @override |
| 25 | final BuiltList<AirlineStatsEntity |
| 26 | @override |
| 27 | final BuiltList<AirportStatsEntity |
| 28 | @override |
| 29 | final BuiltList<TopRouteEntity |
| 30 | |
| 31 | factory _$ProfileStatsResponseEntity( |
| 32 | [void Function(ProfileStatsResponseEntityBuilder |
| 33 | (ProfileStatsResponseEntityBuilder()..update(updates)). |
| 34 | |
| 35 | _$ProfileStatsResponseEntity._( |
| 36 | {required this.mostFlownAircraft, |
| 37 | this.aircraftStats, |
| 38 | required this.passport, |
| 39 | required this.shortestDistanceFlight, |
| 40 | required this.longestDistanceFlight, |
| 41 | required this.shortestDurationFlight, |
| 42 | required this.longestDurationFlight, |
| 43 | required this.airlines, |
| 44 | required this.airports, |
| 45 | required this.topRoutes}) |
| 46 | : super._(); |
| 47 | @override |
| 48 | ProfileStatsResponseEntity rebuild( |
| 49 | void Function(ProfileStatsResponseEntityBuilder |
| 50 | (toBuilder()..update(updates)). |
| 51 | |
| 52 | @override |
| 53 | ProfileStatsResponseEntityBuilder toBuilder() => |
| 54 | ProfileStatsResponseEntityBuilder()..replace(this |
| 55 | |
| 56 | @override |
| 57 | bool operator ==(Object |
| 58 | if (identical(other, this |
| 59 | return other is ProfileStatsResponseEntity |
| 60 | mostFlownAircraft == other.mostFlownAircraft && |
| 61 | aircraftStats == other.aircraftStats && |
| 62 | passport == other.passport && |
| 63 | shortestDistanceFlight == other.shortestDistanceFlight && |
| 64 | longestDistanceFlight == other.longestDistanceFlight && |
| 65 | shortestDurationFlight == other.shortestDurationFlight && |
| 66 | longestDurationFlight == other.longestDurationFlight && |
| 67 | airlines == other.airlines && |
| 68 | airports == other.airports && |
| 69 | topRoutes == other.topRoutes; |
| 70 | } |
| 71 | |
| 72 | @override |
| 73 | int get hashCode { |
| 74 | var _$hash = 0; |
| 75 | _$hash = $jc(_$hash, mostFlownAircraft. |
| 76 | _$hash = $jc(_$hash, aircraftStats. |
| 77 | _$hash = $jc(_$hash, passport. |
| 78 | _$hash = $jc(_$hash, shortestDistanceFlight. |
| 79 | _$hash = $jc(_$hash, longestDistanceFlight. |
| 80 | _$hash = $jc(_$hash, shortestDurationFlight. |
| 81 | _$hash = $jc(_$hash, longestDurationFlight. |
| 82 | _$hash = $jc(_$hash, airlines. |
| 83 | _$hash = $jc(_$hash, airports. |
| 84 | _$hash = $jc(_$hash, topRoutes. |
| 85 | _$hash = $jf(_$hash); |
| 86 | return _$hash; |
| 87 | } |
| 88 | |
| 89 | @override |
| 90 | String toString() { |
| 91 | return (newBuiltValueToStringHelper(r'ProfileStatsResponseEntity') |
| 92 | ..add('mostFlownAircraft', mostFlownAircraft) |
| 93 | ..add('aircraftStats', aircraftStats) |
| 94 | ..add('passport', passport) |
| 95 | ..add('shortestDistanceFlight', shortestDistanceFlight) |
| 96 | ..add('longestDistanceFlight', longestDistanceFlight) |
| 97 | ..add('shortestDurationFlight', shortestDurationFlight) |
| 98 | ..add('longestDurationFlight', longestDurationFlight) |
| 99 | ..add('airlines', airlines) |
| 100 | ..add('airports', airports) |
| 101 | ..add('topRoutes', topRoutes)) |
| 102 | .toString(); |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | class ProfileStatsResponseEntityBuilder |
| 107 | implements |
| 108 | Builder<ProfileStatsResponseEntity, ProfileStatsResponseEntityBuilder |
| 109 | _$ProfileStatsResponseEntity? _$v; |
| 110 | |
| 111 | MostFlownAircraftEntityBuilder? _mostFlownAircraft; |
| 112 | MostFlownAircraftEntityBuilder get mostFlownAircraft => |
| 113 | _$this._mostFlownAircraft ??= MostFlownAircraftEntityBuilder() |
| 114 | set mostFlownAircraft(MostFlownAircraftEntityBuilder? |
| 115 | _$this._mostFlownAircraft = mostFlownAircraft; |
| 116 | |
| 117 | AircraftStatsEntityBuilder? _aircraftStats; |
| 118 | AircraftStatsEntityBuilder get aircraftStats => |
| 119 | _$this._aircraftStats ??= AircraftStatsEntityBuilder() |
| 120 | set aircraftStats(AircraftStatsEntityBuilder? |
| 121 | _$this._aircraftStats = aircraftStats; |
| 122 | |
| 123 | PassportEntityBuilder? _passport; |
| 124 | PassportEntityBuilder get passport => |
| 125 | _$this._passport ??= PassportEntityBuilder() |
| 126 | set passport(PassportEntityBuilder? |
| 127 | |
| 128 | FlightDistanceEntityBuilder? _shortestDistanceFlight; |
| 129 | FlightDistanceEntityBuilder get shortestDistanceFlight => |
| 130 | _$this._shortestDistanceFlight ??= FlightDistanceEntityBuilder() |
| 131 | set shortestDistanceFlight( |
| 132 | FlightDistanceEntityBuilder? shortestDistanceFlight) => |
| 133 | _$this._shortestDistanceFlight = shortestDistanceFlight; |
| 134 | |
| 135 | FlightDistanceEntityBuilder? _longestDistanceFlight; |
| 136 | FlightDistanceEntityBuilder get longestDistanceFlight => |
| 137 | _$this._longestDistanceFlight ??= FlightDistanceEntityBuilder() |
| 138 | set longestDistanceFlight( |
| 139 | FlightDistanceEntityBuilder? longestDistanceFlight) => |
| 140 | _$this._longestDistanceFlight = longestDistanceFlight; |
| 141 | |
| 142 | FlightDurationEntityBuilder? _shortestDurationFlight; |
| 143 | FlightDurationEntityBuilder get shortestDurationFlight => |
| 144 | _$this._shortestDurationFlight ??= FlightDurationEntityBuilder() |
| 145 | set shortestDurationFlight( |
| 146 | FlightDurationEntityBuilder? shortestDurationFlight) => |
| 147 | _$this._shortestDurationFlight = shortestDurationFlight; |
| 148 | |
| 149 | FlightDurationEntityBuilder? _longestDurationFlight; |
| 150 | FlightDurationEntityBuilder get longestDurationFlight => |
| 151 | _$this._longestDurationFlight ??= FlightDurationEntityBuilder() |
| 152 | set longestDurationFlight( |
| 153 | FlightDurationEntityBuilder? longestDurationFlight) => |
| 154 | _$this._longestDurationFlight = longestDurationFlight; |
| 155 | |
| 156 | ListBuilder<AirlineStatsEntity>? _airlines |
| 157 | ListBuilder<AirlineStatsEntity> get airlines |
| 158 | _$this._airlines ??= ListBuilder< |
| 159 | set airlines(ListBuilder< |
| 160 | _$this._airlines = airlines; |
| 161 | |
| 162 | ListBuilder<AirportStatsEntity>? _airports |
| 163 | ListBuilder<AirportStatsEntity> get airports |
| 164 | _$this._airports ??= ListBuilder< |
| 165 | set airports(ListBuilder< |
| 166 | _$this._airports = airports; |
| 167 | |
| 168 | ListBuilder<TopRouteEntity>? _topRoutes |
| 169 | ListBuilder<TopRouteEntity> get topRoutes |
| 170 | _$this._topRoutes ??= ListBuilder< |
| 171 | set topRoutes(ListBuilder< |
| 172 | _$this._topRoutes = topRoutes; |
| 173 | |
| 174 | ProfileStatsResponseEntityBuilder() { |
| 175 | ProfileStatsResponseEntity._defaults(this |
| 176 | } |
| 177 | |
| 178 | ProfileStatsResponseEntityBuilder get _$this { |
| 179 | final $v = _$v; |
| 180 | if ($v != null) { |
| 181 | _mostFlownAircraft = $v.mostFlownAircraft.toBuilder() |
| 182 | _aircraftStats = $v.aircraftStats?.toBuilder |
| 183 | _passport = $v.passport.toBuilder() |
| 184 | _shortestDistanceFlight = $v.shortestDistanceFlight.toBuilder() |
| 185 | _longestDistanceFlight = $v.longestDistanceFlight.toBuilder() |
| 186 | _shortestDurationFlight = $v.shortestDurationFlight.toBuilder() |
| 187 | _longestDurationFlight = $v.longestDurationFlight.toBuilder() |
| 188 | _airlines = $v.airlines.toBuilder() |
| 189 | _airports = $v.airports.toBuilder() |
| 190 | _topRoutes = $v.topRoutes.toBuilder() |
| 191 | _$v = null; |
| 192 | } |
| 193 | return this; |
| 194 | } |
| 195 | |
| 196 | @override |
| 197 | void replace(ProfileStatsResponseEntity |
| 198 | _$v = other as _$ProfileStatsResponseEntity; |
| 199 | } |
| 200 | |
| 201 | @override |
| 202 | void update(void |
| 203 | if (updates != null) updates |
| 204 | } |
| 205 | |
| 206 | @override |
| 207 | ProfileStatsResponseEntity build() => |
| 208 | |
| 209 | _$ProfileStatsResponseEntity _build() { |
| 210 | _$ProfileStatsResponseEntity _$result; |
| 211 | try { |
| 212 | _$result = _$v ?? |
| 213 | _$ProfileStatsResponseEntity._( |
| 214 | mostFlownAircraft: mostFlownAircraft.build(), |
| 215 | aircraftStats: _aircraftStats?.build(), |
| 216 | passport: passport.build(), |
| 217 | shortestDistanceFlight: shortestDistanceFlight.build(), |
| 218 | longestDistanceFlight: longestDistanceFlight.build(), |
| 219 | shortestDurationFlight: shortestDurationFlight.build(), |
| 220 | longestDurationFlight: longestDurationFlight.build(), |
| 221 | airlines: airlines.build(), |
| 222 | airports: airports.build(), |
| 223 | topRoutes: topRoutes.build(), |
| 224 | ); |
| 225 | } catch (_) { |
| 226 | late String _$failedField; |
| 227 | try { |
| 228 | _$failedField = 'mostFlownAircraft'; |
| 229 | mostFlownAircraft.build(); |
| 230 | _$failedField = 'aircraftStats'; |
| 231 | _aircraftStats?.build(); |
| 232 | _$failedField = 'passport'; |
| 233 | passport.build(); |
| 234 | _$failedField = 'shortestDistanceFlight'; |
| 235 | shortestDistanceFlight.build(); |
| 236 | _$failedField = 'longestDistanceFlight'; |
| 237 | longestDistanceFlight.build(); |
| 238 | _$failedField = 'shortestDurationFlight'; |
| 239 | shortestDurationFlight.build(); |
| 240 | _$failedField = 'longestDurationFlight'; |
| 241 | longestDurationFlight.build(); |
| 242 | _$failedField = 'airlines'; |
| 243 | airlines.build(); |
| 244 | _$failedField = 'airports'; |
| 245 | airports.build(); |
| 246 | _$failedField = 'topRoutes'; |
| 247 | topRoutes.build(); |
| 248 | } catch (e) { |
| 249 | throw BuiltValueNestedFieldError( |
| 250 | r'ProfileStatsResponseEntity', _$failedField, e.toString |
| 251 | } |
| 252 | rethrow; |
| 253 | } |
| 254 | replace(_$result); |
| 255 | return _$result; |
| 256 | } |
| 257 | } |
| 258 | |
| 259 | // ignore_for_file: deprecated_member_use_from_same_package,type=lint |