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