bible-tracker/lib/services/last_location.freezed.dart
2026-04-20 15:13:58 -04:00

188 lines
6.1 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 'last_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#adding-getters-and-methods-to-our-models',
);
LastLocation _$LastLocationFromJson(Map<String, dynamic> json) {
return _LastLocation.fromJson(json);
}
/// @nodoc
mixin _$LastLocation {
String get trackerId => throw _privateConstructorUsedError;
int? get bookIndex => throw _privateConstructorUsedError;
/// Serializes this LastLocation to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of LastLocation
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$LastLocationCopyWith<LastLocation> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $LastLocationCopyWith<$Res> {
factory $LastLocationCopyWith(
LastLocation value,
$Res Function(LastLocation) then,
) = _$LastLocationCopyWithImpl<$Res, LastLocation>;
@useResult
$Res call({String trackerId, int? bookIndex});
}
/// @nodoc
class _$LastLocationCopyWithImpl<$Res, $Val extends LastLocation>
implements $LastLocationCopyWith<$Res> {
_$LastLocationCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of LastLocation
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({Object? trackerId = null, Object? bookIndex = freezed}) {
return _then(
_value.copyWith(
trackerId: null == trackerId
? _value.trackerId
: trackerId // ignore: cast_nullable_to_non_nullable
as String,
bookIndex: freezed == bookIndex
? _value.bookIndex
: bookIndex // ignore: cast_nullable_to_non_nullable
as int?,
)
as $Val,
);
}
}
/// @nodoc
abstract class _$$LastLocationImplCopyWith<$Res>
implements $LastLocationCopyWith<$Res> {
factory _$$LastLocationImplCopyWith(
_$LastLocationImpl value,
$Res Function(_$LastLocationImpl) then,
) = __$$LastLocationImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({String trackerId, int? bookIndex});
}
/// @nodoc
class __$$LastLocationImplCopyWithImpl<$Res>
extends _$LastLocationCopyWithImpl<$Res, _$LastLocationImpl>
implements _$$LastLocationImplCopyWith<$Res> {
__$$LastLocationImplCopyWithImpl(
_$LastLocationImpl _value,
$Res Function(_$LastLocationImpl) _then,
) : super(_value, _then);
/// Create a copy of LastLocation
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({Object? trackerId = null, Object? bookIndex = freezed}) {
return _then(
_$LastLocationImpl(
trackerId: null == trackerId
? _value.trackerId
: trackerId // ignore: cast_nullable_to_non_nullable
as String,
bookIndex: freezed == bookIndex
? _value.bookIndex
: bookIndex // ignore: cast_nullable_to_non_nullable
as int?,
),
);
}
}
/// @nodoc
@JsonSerializable()
class _$LastLocationImpl extends _LastLocation {
const _$LastLocationImpl({required this.trackerId, this.bookIndex})
: super._();
factory _$LastLocationImpl.fromJson(Map<String, dynamic> json) =>
_$$LastLocationImplFromJson(json);
@override
final String trackerId;
@override
final int? bookIndex;
@override
String toString() {
return 'LastLocation(trackerId: $trackerId, bookIndex: $bookIndex)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$LastLocationImpl &&
(identical(other.trackerId, trackerId) ||
other.trackerId == trackerId) &&
(identical(other.bookIndex, bookIndex) ||
other.bookIndex == bookIndex));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, trackerId, bookIndex);
/// Create a copy of LastLocation
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$LastLocationImplCopyWith<_$LastLocationImpl> get copyWith =>
__$$LastLocationImplCopyWithImpl<_$LastLocationImpl>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$LastLocationImplToJson(this);
}
}
abstract class _LastLocation extends LastLocation {
const factory _LastLocation({
required final String trackerId,
final int? bookIndex,
}) = _$LastLocationImpl;
const _LastLocation._() : super._();
factory _LastLocation.fromJson(Map<String, dynamic> json) =
_$LastLocationImpl.fromJson;
@override
String get trackerId;
@override
int? get bookIndex;
/// Create a copy of LastLocation
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$LastLocationImplCopyWith<_$LastLocationImpl> get copyWith =>
throw _privateConstructorUsedError;
}