169 lines
5 KiB
Dart
169 lines
5 KiB
Dart
|
// coverage:ignore-file
|
||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
// ignore_for_file: type=lint
|
||
|
// 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, invalid_annotation_target, unnecessary_question_mark
|
||
|
|
||
|
part of 'location.dart';
|
||
|
|
||
|
// **************************************************************************
|
||
|
// FreezedGenerator
|
||
|
// **************************************************************************
|
||
|
|
||
|
T _$identity<T>(T value) => value;
|
||
|
|
||
|
final _privateConstructorUsedError = UnsupportedError(
|
||
|
'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 information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
|
||
|
|
||
|
Location _$LocationFromJson(Map<String, dynamic> json) {
|
||
|
return _Location.fromJson(json);
|
||
|
}
|
||
|
|
||
|
/// @nodoc
|
||
|
mixin _$Location {
|
||
|
double? get latitude => throw _privateConstructorUsedError;
|
||
|
double? get longitude => throw _privateConstructorUsedError;
|
||
|
|
||
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||
|
@JsonKey(ignore: true)
|
||
|
$LocationCopyWith<Location> get copyWith =>
|
||
|
throw _privateConstructorUsedError;
|
||
|
}
|
||
|
|
||
|
/// @nodoc
|
||
|
abstract class $LocationCopyWith<$Res> {
|
||
|
factory $LocationCopyWith(Location value, $Res Function(Location) then) =
|
||
|
_$LocationCopyWithImpl<$Res, Location>;
|
||
|
@useResult
|
||
|
$Res call({double? latitude, double? longitude});
|
||
|
}
|
||
|
|
||
|
/// @nodoc
|
||
|
class _$LocationCopyWithImpl<$Res, $Val extends Location>
|
||
|
implements $LocationCopyWith<$Res> {
|
||
|
_$LocationCopyWithImpl(this._value, this._then);
|
||
|
|
||
|
// ignore: unused_field
|
||
|
final $Val _value;
|
||
|
// ignore: unused_field
|
||
|
final $Res Function($Val) _then;
|
||
|
|
||
|
@pragma('vm:prefer-inline')
|
||
|
@override
|
||
|
$Res call({
|
||
|
Object? latitude = freezed,
|
||
|
Object? longitude = freezed,
|
||
|
}) {
|
||
|
return _then(_value.copyWith(
|
||
|
latitude: freezed == latitude
|
||
|
? _value.latitude
|
||
|
: latitude // ignore: cast_nullable_to_non_nullable
|
||
|
as double?,
|
||
|
longitude: freezed == longitude
|
||
|
? _value.longitude
|
||
|
: longitude // ignore: cast_nullable_to_non_nullable
|
||
|
as double?,
|
||
|
) as $Val);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// @nodoc
|
||
|
abstract class _$$_LocationCopyWith<$Res> implements $LocationCopyWith<$Res> {
|
||
|
factory _$$_LocationCopyWith(
|
||
|
_$_Location value, $Res Function(_$_Location) then) =
|
||
|
__$$_LocationCopyWithImpl<$Res>;
|
||
|
@override
|
||
|
@useResult
|
||
|
$Res call({double? latitude, double? longitude});
|
||
|
}
|
||
|
|
||
|
/// @nodoc
|
||
|
class __$$_LocationCopyWithImpl<$Res>
|
||
|
extends _$LocationCopyWithImpl<$Res, _$_Location>
|
||
|
implements _$$_LocationCopyWith<$Res> {
|
||
|
__$$_LocationCopyWithImpl(
|
||
|
_$_Location _value, $Res Function(_$_Location) _then)
|
||
|
: super(_value, _then);
|
||
|
|
||
|
@pragma('vm:prefer-inline')
|
||
|
@override
|
||
|
$Res call({
|
||
|
Object? latitude = freezed,
|
||
|
Object? longitude = freezed,
|
||
|
}) {
|
||
|
return _then(_$_Location(
|
||
|
latitude: freezed == latitude
|
||
|
? _value.latitude
|
||
|
: latitude // ignore: cast_nullable_to_non_nullable
|
||
|
as double?,
|
||
|
longitude: freezed == longitude
|
||
|
? _value.longitude
|
||
|
: longitude // ignore: cast_nullable_to_non_nullable
|
||
|
as double?,
|
||
|
));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// @nodoc
|
||
|
@JsonSerializable()
|
||
|
class _$_Location implements _Location {
|
||
|
const _$_Location({required this.latitude, required this.longitude});
|
||
|
|
||
|
factory _$_Location.fromJson(Map<String, dynamic> json) =>
|
||
|
_$$_LocationFromJson(json);
|
||
|
|
||
|
@override
|
||
|
final double? latitude;
|
||
|
@override
|
||
|
final double? longitude;
|
||
|
|
||
|
@override
|
||
|
String toString() {
|
||
|
return 'Location(latitude: $latitude, longitude: $longitude)';
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
bool operator ==(dynamic other) {
|
||
|
return identical(this, other) ||
|
||
|
(other.runtimeType == runtimeType &&
|
||
|
other is _$_Location &&
|
||
|
(identical(other.latitude, latitude) ||
|
||
|
other.latitude == latitude) &&
|
||
|
(identical(other.longitude, longitude) ||
|
||
|
other.longitude == longitude));
|
||
|
}
|
||
|
|
||
|
@JsonKey(ignore: true)
|
||
|
@override
|
||
|
int get hashCode => Object.hash(runtimeType, latitude, longitude);
|
||
|
|
||
|
@JsonKey(ignore: true)
|
||
|
@override
|
||
|
@pragma('vm:prefer-inline')
|
||
|
_$$_LocationCopyWith<_$_Location> get copyWith =>
|
||
|
__$$_LocationCopyWithImpl<_$_Location>(this, _$identity);
|
||
|
|
||
|
@override
|
||
|
Map<String, dynamic> toJson() {
|
||
|
return _$$_LocationToJson(
|
||
|
this,
|
||
|
);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
abstract class _Location implements Location {
|
||
|
const factory _Location(
|
||
|
{required final double? latitude,
|
||
|
required final double? longitude}) = _$_Location;
|
||
|
|
||
|
factory _Location.fromJson(Map<String, dynamic> json) = _$_Location.fromJson;
|
||
|
|
||
|
@override
|
||
|
double? get latitude;
|
||
|
@override
|
||
|
double? get longitude;
|
||
|
@override
|
||
|
@JsonKey(ignore: true)
|
||
|
_$$_LocationCopyWith<_$_Location> get copyWith =>
|
||
|
throw _privateConstructorUsedError;
|
||
|
}
|