yubioath-flutter/lib/core/models.freezed.dart
2023-11-15 08:56:52 +01:00

166 lines
4.9 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 'models.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');
/// @nodoc
mixin _$Version {
int get major => throw _privateConstructorUsedError;
int get minor => throw _privateConstructorUsedError;
int get patch => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
$VersionCopyWith<Version> get copyWith => throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $VersionCopyWith<$Res> {
factory $VersionCopyWith(Version value, $Res Function(Version) then) =
_$VersionCopyWithImpl<$Res, Version>;
@useResult
$Res call({int major, int minor, int patch});
}
/// @nodoc
class _$VersionCopyWithImpl<$Res, $Val extends Version>
implements $VersionCopyWith<$Res> {
_$VersionCopyWithImpl(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? major = null,
Object? minor = null,
Object? patch = null,
}) {
return _then(_value.copyWith(
major: null == major
? _value.major
: major // ignore: cast_nullable_to_non_nullable
as int,
minor: null == minor
? _value.minor
: minor // ignore: cast_nullable_to_non_nullable
as int,
patch: null == patch
? _value.patch
: patch // ignore: cast_nullable_to_non_nullable
as int,
) as $Val);
}
}
/// @nodoc
abstract class _$$VersionImplCopyWith<$Res> implements $VersionCopyWith<$Res> {
factory _$$VersionImplCopyWith(
_$VersionImpl value, $Res Function(_$VersionImpl) then) =
__$$VersionImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({int major, int minor, int patch});
}
/// @nodoc
class __$$VersionImplCopyWithImpl<$Res>
extends _$VersionCopyWithImpl<$Res, _$VersionImpl>
implements _$$VersionImplCopyWith<$Res> {
__$$VersionImplCopyWithImpl(
_$VersionImpl _value, $Res Function(_$VersionImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@override
$Res call({
Object? major = null,
Object? minor = null,
Object? patch = null,
}) {
return _then(_$VersionImpl(
null == major
? _value.major
: major // ignore: cast_nullable_to_non_nullable
as int,
null == minor
? _value.minor
: minor // ignore: cast_nullable_to_non_nullable
as int,
null == patch
? _value.patch
: patch // ignore: cast_nullable_to_non_nullable
as int,
));
}
}
/// @nodoc
class _$VersionImpl extends _Version {
const _$VersionImpl(this.major, this.minor, this.patch)
: assert(major >= 0),
assert(major < 256),
assert(minor >= 0),
assert(minor < 256),
assert(patch >= 0),
assert(patch < 256),
super._();
@override
final int major;
@override
final int minor;
@override
final int patch;
@override
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$VersionImpl &&
(identical(other.major, major) || other.major == major) &&
(identical(other.minor, minor) || other.minor == minor) &&
(identical(other.patch, patch) || other.patch == patch));
}
@override
int get hashCode => Object.hash(runtimeType, major, minor, patch);
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$VersionImplCopyWith<_$VersionImpl> get copyWith =>
__$$VersionImplCopyWithImpl<_$VersionImpl>(this, _$identity);
}
abstract class _Version extends Version {
const factory _Version(final int major, final int minor, final int patch) =
_$VersionImpl;
const _Version._() : super._();
@override
int get major;
@override
int get minor;
@override
int get patch;
@override
@JsonKey(ignore: true)
_$$VersionImplCopyWith<_$VersionImpl> get copyWith =>
throw _privateConstructorUsedError;
}