Line data Source code
1 : // GENERATED CODE - DO NOT MODIFY BY HAND
2 : // ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides
3 :
4 : part of 'geopoint.dart';
5 :
6 : // **************************************************************************
7 : // FreezedGenerator
8 : // **************************************************************************
9 :
10 0 : T _$identity<T>(T value) => value;
11 :
12 0 : final _privateConstructorUsedError = UnsupportedError(
13 : 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more informations: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
14 :
15 1 : Geopoint _$GeopointFromJson(Map<String, dynamic> json) {
16 1 : return _Geopoint.fromJson(json);
17 : }
18 :
19 : /// @nodoc
20 : class _$GeopointTearOff {
21 7 : const _$GeopointTearOff();
22 :
23 0 : _Geopoint call({required double latitude, required double longitude}) {
24 0 : return _Geopoint(
25 : latitude: latitude,
26 : longitude: longitude,
27 : );
28 : }
29 :
30 0 : Geopoint fromJson(Map<String, Object> json) {
31 0 : return Geopoint.fromJson(json);
32 : }
33 : }
34 :
35 : /// @nodoc
36 : const $Geopoint = _$GeopointTearOff();
37 :
38 : /// @nodoc
39 : mixin _$Geopoint {
40 0 : double get latitude => throw _privateConstructorUsedError;
41 0 : double get longitude => throw _privateConstructorUsedError;
42 :
43 0 : Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
44 0 : @JsonKey(ignore: true)
45 : $GeopointCopyWith<Geopoint> get copyWith =>
46 0 : throw _privateConstructorUsedError;
47 : }
48 :
49 : /// @nodoc
50 : abstract class $GeopointCopyWith<$Res> {
51 : factory $GeopointCopyWith(Geopoint value, $Res Function(Geopoint) then) =
52 : _$GeopointCopyWithImpl<$Res>;
53 : $Res call({double latitude, double longitude});
54 : }
55 :
56 : /// @nodoc
57 : class _$GeopointCopyWithImpl<$Res> implements $GeopointCopyWith<$Res> {
58 0 : _$GeopointCopyWithImpl(this._value, this._then);
59 :
60 : final Geopoint _value;
61 : // ignore: unused_field
62 : final $Res Function(Geopoint) _then;
63 :
64 0 : @override
65 : $Res call({
66 : Object? latitude = freezed,
67 : Object? longitude = freezed,
68 : }) {
69 0 : return _then(_value.copyWith(
70 0 : latitude: latitude == freezed
71 0 : ? _value.latitude
72 : : latitude // ignore: cast_nullable_to_non_nullable
73 : as double,
74 0 : longitude: longitude == freezed
75 0 : ? _value.longitude
76 : : longitude // ignore: cast_nullable_to_non_nullable
77 : as double,
78 : ));
79 : }
80 : }
81 :
82 : /// @nodoc
83 : abstract class _$GeopointCopyWith<$Res> implements $GeopointCopyWith<$Res> {
84 : factory _$GeopointCopyWith(_Geopoint value, $Res Function(_Geopoint) then) =
85 : __$GeopointCopyWithImpl<$Res>;
86 : @override
87 : $Res call({double latitude, double longitude});
88 : }
89 :
90 : /// @nodoc
91 : class __$GeopointCopyWithImpl<$Res> extends _$GeopointCopyWithImpl<$Res>
92 : implements _$GeopointCopyWith<$Res> {
93 0 : __$GeopointCopyWithImpl(_Geopoint _value, $Res Function(_Geopoint) _then)
94 0 : : super(_value, (v) => _then(v as _Geopoint));
95 :
96 0 : @override
97 0 : _Geopoint get _value => super._value as _Geopoint;
98 :
99 0 : @override
100 : $Res call({
101 : Object? latitude = freezed,
102 : Object? longitude = freezed,
103 : }) {
104 0 : return _then(_Geopoint(
105 0 : latitude: latitude == freezed
106 0 : ? _value.latitude
107 : : latitude // ignore: cast_nullable_to_non_nullable
108 : as double,
109 0 : longitude: longitude == freezed
110 0 : ? _value.longitude
111 : : longitude // ignore: cast_nullable_to_non_nullable
112 : as double,
113 : ));
114 : }
115 : }
116 :
117 : /// @nodoc
118 : @JsonSerializable()
119 : class _$_Geopoint implements _Geopoint {
120 1 : _$_Geopoint({required this.latitude, required this.longitude});
121 :
122 1 : factory _$_Geopoint.fromJson(Map<String, dynamic> json) =>
123 1 : _$_$_GeopointFromJson(json);
124 :
125 : @override
126 : final double latitude;
127 : @override
128 : final double longitude;
129 :
130 0 : @override
131 : String toString() {
132 0 : return 'Geopoint(latitude: $latitude, longitude: $longitude)';
133 : }
134 :
135 0 : @override
136 : bool operator ==(dynamic other) {
137 : return identical(this, other) ||
138 0 : (other is _Geopoint &&
139 0 : (identical(other.latitude, latitude) ||
140 : const DeepCollectionEquality()
141 0 : .equals(other.latitude, latitude)) &&
142 0 : (identical(other.longitude, longitude) ||
143 : const DeepCollectionEquality()
144 0 : .equals(other.longitude, longitude)));
145 : }
146 :
147 0 : @override
148 : int get hashCode =>
149 0 : runtimeType.hashCode ^
150 0 : const DeepCollectionEquality().hash(latitude) ^
151 0 : const DeepCollectionEquality().hash(longitude);
152 :
153 0 : @JsonKey(ignore: true)
154 : @override
155 : _$GeopointCopyWith<_Geopoint> get copyWith =>
156 0 : __$GeopointCopyWithImpl<_Geopoint>(this, _$identity);
157 :
158 0 : @override
159 : Map<String, dynamic> toJson() {
160 0 : return _$_$_GeopointToJson(this);
161 : }
162 : }
163 :
164 : abstract class _Geopoint implements Geopoint {
165 : factory _Geopoint({required double latitude, required double longitude}) =
166 : _$_Geopoint;
167 :
168 : factory _Geopoint.fromJson(Map<String, dynamic> json) = _$_Geopoint.fromJson;
169 :
170 0 : @override
171 0 : double get latitude => throw _privateConstructorUsedError;
172 0 : @override
173 0 : double get longitude => throw _privateConstructorUsedError;
174 0 : @override
175 : @JsonKey(ignore: true)
176 : _$GeopointCopyWith<_Geopoint> get copyWith =>
177 0 : throw _privateConstructorUsedError;
178 : }
|