yubioath-flutter/lib/fido/models.freezed.dart

1781 lines
51 KiB
Dart
Raw Normal View History

2022-03-15 19:16:14 +03:00
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
2022-05-12 12:06:28 +03:00
// ignore_for_file: type=lint
2022-12-05 17:26:54 +03:00
// 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
2022-03-15 19:16:14 +03:00
part of 'models.dart';
// **************************************************************************
// FreezedGenerator
// **************************************************************************
T _$identity<T>(T value) => value;
final _privateConstructorUsedError = UnsupportedError(
2024-02-05 17:15:38 +03:00
'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');
2022-03-15 19:16:14 +03:00
FidoState _$FidoStateFromJson(Map<String, dynamic> json) {
return _FidoState.fromJson(json);
}
/// @nodoc
mixin _$FidoState {
Map<String, dynamic> get info => throw _privateConstructorUsedError;
bool get unlocked => throw _privateConstructorUsedError;
int? get pinRetries => throw _privateConstructorUsedError;
2022-03-15 19:16:14 +03:00
2024-08-16 14:09:01 +03:00
/// Serializes this FidoState to a JSON map.
2022-03-15 19:16:14 +03:00
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Create a copy of FidoState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2022-03-15 19:16:14 +03:00
$FidoStateCopyWith<FidoState> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $FidoStateCopyWith<$Res> {
factory $FidoStateCopyWith(FidoState value, $Res Function(FidoState) then) =
2022-10-19 12:15:48 +03:00
_$FidoStateCopyWithImpl<$Res, FidoState>;
@useResult
$Res call({Map<String, dynamic> info, bool unlocked, int? pinRetries});
2022-03-15 19:16:14 +03:00
}
/// @nodoc
2022-10-19 12:15:48 +03:00
class _$FidoStateCopyWithImpl<$Res, $Val extends FidoState>
implements $FidoStateCopyWith<$Res> {
2022-03-15 19:16:14 +03:00
_$FidoStateCopyWithImpl(this._value, this._then);
// ignore: unused_field
2022-10-19 12:15:48 +03:00
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
2022-03-15 19:16:14 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of FidoState
/// with the given fields replaced by the non-null parameter values.
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2022-03-15 19:16:14 +03:00
@override
$Res call({
2022-10-19 12:15:48 +03:00
Object? info = null,
Object? unlocked = null,
Object? pinRetries = freezed,
2022-03-15 19:16:14 +03:00
}) {
return _then(_value.copyWith(
2022-10-19 12:15:48 +03:00
info: null == info
2022-03-15 19:16:14 +03:00
? _value.info
: info // ignore: cast_nullable_to_non_nullable
as Map<String, dynamic>,
2022-10-19 12:15:48 +03:00
unlocked: null == unlocked
? _value.unlocked
: unlocked // ignore: cast_nullable_to_non_nullable
as bool,
pinRetries: freezed == pinRetries
? _value.pinRetries
: pinRetries // ignore: cast_nullable_to_non_nullable
as int?,
2022-10-19 12:15:48 +03:00
) as $Val);
2022-03-15 19:16:14 +03:00
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _$$FidoStateImplCopyWith<$Res>
implements $FidoStateCopyWith<$Res> {
factory _$$FidoStateImplCopyWith(
_$FidoStateImpl value, $Res Function(_$FidoStateImpl) then) =
__$$FidoStateImplCopyWithImpl<$Res>;
2022-03-15 19:16:14 +03:00
@override
2022-10-19 12:15:48 +03:00
@useResult
$Res call({Map<String, dynamic> info, bool unlocked, int? pinRetries});
2022-03-15 19:16:14 +03:00
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$FidoStateImplCopyWithImpl<$Res>
extends _$FidoStateCopyWithImpl<$Res, _$FidoStateImpl>
implements _$$FidoStateImplCopyWith<$Res> {
__$$FidoStateImplCopyWithImpl(
_$FidoStateImpl _value, $Res Function(_$FidoStateImpl) _then)
2022-10-19 12:15:48 +03:00
: super(_value, _then);
2022-03-15 19:16:14 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of FidoState
/// with the given fields replaced by the non-null parameter values.
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2022-03-15 19:16:14 +03:00
@override
$Res call({
2022-10-19 12:15:48 +03:00
Object? info = null,
Object? unlocked = null,
Object? pinRetries = freezed,
2022-03-15 19:16:14 +03:00
}) {
2023-11-15 10:56:52 +03:00
return _then(_$FidoStateImpl(
2022-10-19 12:15:48 +03:00
info: null == info
2022-05-12 12:06:28 +03:00
? _value._info
2022-03-15 19:16:14 +03:00
: info // ignore: cast_nullable_to_non_nullable
as Map<String, dynamic>,
2022-10-19 12:15:48 +03:00
unlocked: null == unlocked
? _value.unlocked
: unlocked // ignore: cast_nullable_to_non_nullable
as bool,
pinRetries: freezed == pinRetries
? _value.pinRetries
: pinRetries // ignore: cast_nullable_to_non_nullable
as int?,
2022-03-15 19:16:14 +03:00
));
}
}
/// @nodoc
@JsonSerializable()
2023-11-15 10:56:52 +03:00
class _$FidoStateImpl extends _FidoState {
_$FidoStateImpl(
{required final Map<String, dynamic> info,
required this.unlocked,
this.pinRetries})
2022-05-12 12:06:28 +03:00
: _info = info,
super._();
2022-03-15 19:16:14 +03:00
2023-11-15 10:56:52 +03:00
factory _$FidoStateImpl.fromJson(Map<String, dynamic> json) =>
_$$FidoStateImplFromJson(json);
2022-03-15 19:16:14 +03:00
2022-05-12 12:06:28 +03:00
final Map<String, dynamic> _info;
2022-03-15 19:16:14 +03:00
@override
2022-05-12 12:06:28 +03:00
Map<String, dynamic> get info {
2022-12-05 17:26:54 +03:00
if (_info is EqualUnmodifiableMapView) return _info;
2022-05-12 12:06:28 +03:00
// ignore: implicit_dynamic_type
return EqualUnmodifiableMapView(_info);
}
@override
final bool unlocked;
@override
final int? pinRetries;
2022-03-15 19:16:14 +03:00
@override
String toString() {
return 'FidoState(info: $info, unlocked: $unlocked, pinRetries: $pinRetries)';
2022-03-15 19:16:14 +03:00
}
@override
2024-02-02 15:52:22 +03:00
bool operator ==(Object other) {
2022-03-15 19:16:14 +03:00
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-15 10:56:52 +03:00
other is _$FidoStateImpl &&
2022-05-12 12:06:28 +03:00
const DeepCollectionEquality().equals(other._info, _info) &&
2022-10-19 12:15:48 +03:00
(identical(other.unlocked, unlocked) ||
other.unlocked == unlocked) &&
(identical(other.pinRetries, pinRetries) ||
other.pinRetries == pinRetries));
2022-03-15 19:16:14 +03:00
}
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2022-03-15 19:16:14 +03:00
@override
int get hashCode => Object.hash(runtimeType,
const DeepCollectionEquality().hash(_info), unlocked, pinRetries);
2022-03-15 19:16:14 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of FidoState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2022-03-15 19:16:14 +03:00
@override
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2023-11-15 10:56:52 +03:00
_$$FidoStateImplCopyWith<_$FidoStateImpl> get copyWith =>
__$$FidoStateImplCopyWithImpl<_$FidoStateImpl>(this, _$identity);
2022-03-15 19:16:14 +03:00
@override
Map<String, dynamic> toJson() {
2023-11-15 10:56:52 +03:00
return _$$FidoStateImplToJson(
2022-07-21 17:38:45 +03:00
this,
);
2022-03-15 19:16:14 +03:00
}
}
abstract class _FidoState extends FidoState {
factory _FidoState(
2022-05-12 12:06:28 +03:00
{required final Map<String, dynamic> info,
required final bool unlocked,
final int? pinRetries}) = _$FidoStateImpl;
2022-03-15 19:16:14 +03:00
_FidoState._() : super._();
factory _FidoState.fromJson(Map<String, dynamic> json) =
2023-11-15 10:56:52 +03:00
_$FidoStateImpl.fromJson;
2022-03-15 19:16:14 +03:00
@override
2022-07-07 11:29:42 +03:00
Map<String, dynamic> get info;
2022-03-15 19:16:14 +03:00
@override
2022-07-07 11:29:42 +03:00
bool get unlocked;
@override
int? get pinRetries;
2024-08-16 14:09:01 +03:00
/// Create a copy of FidoState
/// with the given fields replaced by the non-null parameter values.
@override
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-11-15 10:56:52 +03:00
_$$FidoStateImplCopyWith<_$FidoStateImpl> get copyWith =>
2022-03-15 19:16:14 +03:00
throw _privateConstructorUsedError;
}
2022-03-17 15:06:48 +03:00
/// @nodoc
mixin _$PinResult {
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function() success,
2024-03-26 16:07:23 +03:00
required TResult Function(FidoPinFailureReason reason) failed,
2022-03-17 15:06:48 +03:00
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
2022-10-19 12:15:48 +03:00
TResult? Function()? success,
2024-03-26 16:07:23 +03:00
TResult? Function(FidoPinFailureReason reason)? failed,
2022-03-17 15:06:48 +03:00
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function()? success,
2024-03-26 16:07:23 +03:00
TResult Function(FidoPinFailureReason reason)? failed,
2022-03-17 15:06:48 +03:00
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult map<TResult extends Object?>({
required TResult Function(_PinSuccess value) success,
required TResult Function(_PinFailure value) failed,
2022-03-17 15:06:48 +03:00
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
2022-10-19 12:15:48 +03:00
TResult? Function(_PinSuccess value)? success,
TResult? Function(_PinFailure value)? failed,
2022-03-17 15:06:48 +03:00
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
TResult Function(_PinSuccess value)? success,
TResult Function(_PinFailure value)? failed,
2022-03-17 15:06:48 +03:00
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $PinResultCopyWith<$Res> {
factory $PinResultCopyWith(PinResult value, $Res Function(PinResult) then) =
2022-10-19 12:15:48 +03:00
_$PinResultCopyWithImpl<$Res, PinResult>;
2022-03-17 15:06:48 +03:00
}
/// @nodoc
2022-10-19 12:15:48 +03:00
class _$PinResultCopyWithImpl<$Res, $Val extends PinResult>
implements $PinResultCopyWith<$Res> {
2022-03-17 15:06:48 +03:00
_$PinResultCopyWithImpl(this._value, this._then);
// ignore: unused_field
2022-10-19 12:15:48 +03:00
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
2024-08-16 14:09:01 +03:00
/// Create a copy of PinResult
/// with the given fields replaced by the non-null parameter values.
2022-03-17 15:06:48 +03:00
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _$$PinSuccessImplCopyWith<$Res> {
factory _$$PinSuccessImplCopyWith(
_$PinSuccessImpl value, $Res Function(_$PinSuccessImpl) then) =
__$$PinSuccessImplCopyWithImpl<$Res>;
2022-03-17 15:06:48 +03:00
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$PinSuccessImplCopyWithImpl<$Res>
extends _$PinResultCopyWithImpl<$Res, _$PinSuccessImpl>
implements _$$PinSuccessImplCopyWith<$Res> {
__$$PinSuccessImplCopyWithImpl(
_$PinSuccessImpl _value, $Res Function(_$PinSuccessImpl) _then)
2022-10-19 12:15:48 +03:00
: super(_value, _then);
2024-08-16 14:09:01 +03:00
/// Create a copy of PinResult
/// with the given fields replaced by the non-null parameter values.
2022-03-17 15:06:48 +03:00
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class _$PinSuccessImpl implements _PinSuccess {
_$PinSuccessImpl();
2022-03-17 15:06:48 +03:00
@override
String toString() {
return 'PinResult.success()';
}
@override
2024-02-02 15:52:22 +03:00
bool operator ==(Object other) {
2022-03-17 15:06:48 +03:00
return identical(this, other) ||
2023-11-15 10:56:52 +03:00
(other.runtimeType == runtimeType && other is _$PinSuccessImpl);
2022-03-17 15:06:48 +03:00
}
@override
int get hashCode => runtimeType.hashCode;
@override
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function() success,
2024-03-26 16:07:23 +03:00
required TResult Function(FidoPinFailureReason reason) failed,
2022-03-17 15:06:48 +03:00
}) {
return success();
}
@override
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
2022-10-19 12:15:48 +03:00
TResult? Function()? success,
2024-03-26 16:07:23 +03:00
TResult? Function(FidoPinFailureReason reason)? failed,
2022-03-17 15:06:48 +03:00
}) {
return success?.call();
}
@override
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function()? success,
2024-03-26 16:07:23 +03:00
TResult Function(FidoPinFailureReason reason)? failed,
2022-03-17 15:06:48 +03:00
required TResult orElse(),
}) {
if (success != null) {
return success();
}
return orElse();
}
@override
@optionalTypeArgs
TResult map<TResult extends Object?>({
required TResult Function(_PinSuccess value) success,
required TResult Function(_PinFailure value) failed,
2022-03-17 15:06:48 +03:00
}) {
return success(this);
}
@override
@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
2022-10-19 12:15:48 +03:00
TResult? Function(_PinSuccess value)? success,
TResult? Function(_PinFailure value)? failed,
2022-03-17 15:06:48 +03:00
}) {
return success?.call(this);
}
@override
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
TResult Function(_PinSuccess value)? success,
TResult Function(_PinFailure value)? failed,
2022-03-17 15:06:48 +03:00
required TResult orElse(),
}) {
if (success != null) {
return success(this);
}
return orElse();
}
}
abstract class _PinSuccess implements PinResult {
2023-11-15 10:56:52 +03:00
factory _PinSuccess() = _$PinSuccessImpl;
2022-03-17 15:06:48 +03:00
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _$$PinFailureImplCopyWith<$Res> {
factory _$$PinFailureImplCopyWith(
_$PinFailureImpl value, $Res Function(_$PinFailureImpl) then) =
__$$PinFailureImplCopyWithImpl<$Res>;
2022-10-19 12:15:48 +03:00
@useResult
2024-03-26 16:07:23 +03:00
$Res call({FidoPinFailureReason reason});
$FidoPinFailureReasonCopyWith<$Res> get reason;
2022-03-17 15:06:48 +03:00
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$PinFailureImplCopyWithImpl<$Res>
extends _$PinResultCopyWithImpl<$Res, _$PinFailureImpl>
implements _$$PinFailureImplCopyWith<$Res> {
__$$PinFailureImplCopyWithImpl(
_$PinFailureImpl _value, $Res Function(_$PinFailureImpl) _then)
2022-10-19 12:15:48 +03:00
: super(_value, _then);
2022-03-17 15:06:48 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of PinResult
/// with the given fields replaced by the non-null parameter values.
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2022-03-17 15:06:48 +03:00
@override
$Res call({
2024-03-26 16:07:23 +03:00
Object? reason = null,
2022-03-17 15:06:48 +03:00
}) {
2023-11-15 10:56:52 +03:00
return _then(_$PinFailureImpl(
2024-03-26 16:07:23 +03:00
null == reason
? _value.reason
: reason // ignore: cast_nullable_to_non_nullable
as FidoPinFailureReason,
2022-03-17 15:06:48 +03:00
));
}
2024-03-26 16:07:23 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of PinResult
/// with the given fields replaced by the non-null parameter values.
2024-03-26 16:07:23 +03:00
@override
@pragma('vm:prefer-inline')
$FidoPinFailureReasonCopyWith<$Res> get reason {
return $FidoPinFailureReasonCopyWith<$Res>(_value.reason, (value) {
return _then(_value.copyWith(reason: value));
});
}
2022-03-17 15:06:48 +03:00
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class _$PinFailureImpl implements _PinFailure {
2024-03-26 16:07:23 +03:00
_$PinFailureImpl(this.reason);
2022-03-17 15:06:48 +03:00
@override
2024-03-26 16:07:23 +03:00
final FidoPinFailureReason reason;
2022-03-17 15:06:48 +03:00
@override
String toString() {
2024-03-26 16:07:23 +03:00
return 'PinResult.failed(reason: $reason)';
2022-03-17 15:06:48 +03:00
}
@override
2024-02-02 15:52:22 +03:00
bool operator ==(Object other) {
2022-03-17 15:06:48 +03:00
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-15 10:56:52 +03:00
other is _$PinFailureImpl &&
2024-03-26 16:07:23 +03:00
(identical(other.reason, reason) || other.reason == reason));
2022-03-17 15:06:48 +03:00
}
@override
2024-03-26 16:07:23 +03:00
int get hashCode => Object.hash(runtimeType, reason);
2022-03-17 15:06:48 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of PinResult
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2022-03-17 15:06:48 +03:00
@override
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2023-11-15 10:56:52 +03:00
_$$PinFailureImplCopyWith<_$PinFailureImpl> get copyWith =>
__$$PinFailureImplCopyWithImpl<_$PinFailureImpl>(this, _$identity);
2022-03-17 15:06:48 +03:00
@override
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function() success,
2024-03-26 16:07:23 +03:00
required TResult Function(FidoPinFailureReason reason) failed,
2022-03-17 15:06:48 +03:00
}) {
2024-03-26 16:07:23 +03:00
return failed(reason);
2022-03-17 15:06:48 +03:00
}
@override
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
2022-10-19 12:15:48 +03:00
TResult? Function()? success,
2024-03-26 16:07:23 +03:00
TResult? Function(FidoPinFailureReason reason)? failed,
2022-03-17 15:06:48 +03:00
}) {
2024-03-26 16:07:23 +03:00
return failed?.call(reason);
2022-03-17 15:06:48 +03:00
}
@override
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function()? success,
2024-03-26 16:07:23 +03:00
TResult Function(FidoPinFailureReason reason)? failed,
2022-03-17 15:06:48 +03:00
required TResult orElse(),
}) {
if (failed != null) {
2024-03-26 16:07:23 +03:00
return failed(reason);
2022-03-17 15:06:48 +03:00
}
return orElse();
}
@override
@optionalTypeArgs
TResult map<TResult extends Object?>({
required TResult Function(_PinSuccess value) success,
required TResult Function(_PinFailure value) failed,
2022-03-17 15:06:48 +03:00
}) {
return failed(this);
}
@override
@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
2022-10-19 12:15:48 +03:00
TResult? Function(_PinSuccess value)? success,
TResult? Function(_PinFailure value)? failed,
2022-03-17 15:06:48 +03:00
}) {
return failed?.call(this);
}
@override
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
TResult Function(_PinSuccess value)? success,
TResult Function(_PinFailure value)? failed,
2022-03-17 15:06:48 +03:00
required TResult orElse(),
}) {
if (failed != null) {
return failed(this);
}
return orElse();
}
}
abstract class _PinFailure implements PinResult {
2024-03-26 16:07:23 +03:00
factory _PinFailure(final FidoPinFailureReason reason) = _$PinFailureImpl;
FidoPinFailureReason get reason;
2024-08-16 14:09:01 +03:00
/// Create a copy of PinResult
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2024-03-26 16:07:23 +03:00
_$$PinFailureImplCopyWith<_$PinFailureImpl> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
mixin _$FidoPinFailureReason {
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function(int retries, bool authBlocked) invalidPin,
required TResult Function() weakPin,
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
TResult? Function(int retries, bool authBlocked)? invalidPin,
TResult? Function()? weakPin,
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function(int retries, bool authBlocked)? invalidPin,
TResult Function()? weakPin,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult map<TResult extends Object?>({
required TResult Function(FidoInvalidPin value) invalidPin,
required TResult Function(FidoWeakPin value) weakPin,
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
TResult? Function(FidoInvalidPin value)? invalidPin,
TResult? Function(FidoWeakPin value)? weakPin,
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
TResult Function(FidoInvalidPin value)? invalidPin,
TResult Function(FidoWeakPin value)? weakPin,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $FidoPinFailureReasonCopyWith<$Res> {
factory $FidoPinFailureReasonCopyWith(FidoPinFailureReason value,
$Res Function(FidoPinFailureReason) then) =
_$FidoPinFailureReasonCopyWithImpl<$Res, FidoPinFailureReason>;
}
/// @nodoc
class _$FidoPinFailureReasonCopyWithImpl<$Res,
$Val extends FidoPinFailureReason>
implements $FidoPinFailureReasonCopyWith<$Res> {
_$FidoPinFailureReasonCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
2024-08-16 14:09:01 +03:00
/// Create a copy of FidoPinFailureReason
/// with the given fields replaced by the non-null parameter values.
2024-03-26 16:07:23 +03:00
}
/// @nodoc
abstract class _$$FidoInvalidPinImplCopyWith<$Res> {
factory _$$FidoInvalidPinImplCopyWith(_$FidoInvalidPinImpl value,
$Res Function(_$FidoInvalidPinImpl) then) =
__$$FidoInvalidPinImplCopyWithImpl<$Res>;
@useResult
$Res call({int retries, bool authBlocked});
}
/// @nodoc
class __$$FidoInvalidPinImplCopyWithImpl<$Res>
extends _$FidoPinFailureReasonCopyWithImpl<$Res, _$FidoInvalidPinImpl>
implements _$$FidoInvalidPinImplCopyWith<$Res> {
__$$FidoInvalidPinImplCopyWithImpl(
_$FidoInvalidPinImpl _value, $Res Function(_$FidoInvalidPinImpl) _then)
: super(_value, _then);
2024-08-16 14:09:01 +03:00
/// Create a copy of FidoPinFailureReason
/// with the given fields replaced by the non-null parameter values.
2024-03-26 16:07:23 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
Object? retries = null,
Object? authBlocked = null,
}) {
return _then(_$FidoInvalidPinImpl(
null == retries
? _value.retries
: retries // ignore: cast_nullable_to_non_nullable
as int,
null == authBlocked
? _value.authBlocked
: authBlocked // ignore: cast_nullable_to_non_nullable
as bool,
));
}
}
/// @nodoc
class _$FidoInvalidPinImpl implements FidoInvalidPin {
_$FidoInvalidPinImpl(this.retries, this.authBlocked);
@override
final int retries;
@override
final bool authBlocked;
@override
String toString() {
return 'FidoPinFailureReason.invalidPin(retries: $retries, authBlocked: $authBlocked)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$FidoInvalidPinImpl &&
(identical(other.retries, retries) || other.retries == retries) &&
(identical(other.authBlocked, authBlocked) ||
other.authBlocked == authBlocked));
}
@override
int get hashCode => Object.hash(runtimeType, retries, authBlocked);
2024-08-16 14:09:01 +03:00
/// Create a copy of FidoPinFailureReason
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2024-03-26 16:07:23 +03:00
@override
@pragma('vm:prefer-inline')
_$$FidoInvalidPinImplCopyWith<_$FidoInvalidPinImpl> get copyWith =>
__$$FidoInvalidPinImplCopyWithImpl<_$FidoInvalidPinImpl>(
this, _$identity);
@override
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function(int retries, bool authBlocked) invalidPin,
required TResult Function() weakPin,
}) {
return invalidPin(retries, authBlocked);
}
@override
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
TResult? Function(int retries, bool authBlocked)? invalidPin,
TResult? Function()? weakPin,
}) {
return invalidPin?.call(retries, authBlocked);
}
@override
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function(int retries, bool authBlocked)? invalidPin,
TResult Function()? weakPin,
required TResult orElse(),
}) {
if (invalidPin != null) {
return invalidPin(retries, authBlocked);
}
return orElse();
}
@override
@optionalTypeArgs
TResult map<TResult extends Object?>({
required TResult Function(FidoInvalidPin value) invalidPin,
required TResult Function(FidoWeakPin value) weakPin,
}) {
return invalidPin(this);
}
@override
@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
TResult? Function(FidoInvalidPin value)? invalidPin,
TResult? Function(FidoWeakPin value)? weakPin,
}) {
return invalidPin?.call(this);
}
@override
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
TResult Function(FidoInvalidPin value)? invalidPin,
TResult Function(FidoWeakPin value)? weakPin,
required TResult orElse(),
}) {
if (invalidPin != null) {
return invalidPin(this);
}
return orElse();
}
}
abstract class FidoInvalidPin implements FidoPinFailureReason {
factory FidoInvalidPin(final int retries, final bool authBlocked) =
_$FidoInvalidPinImpl;
2022-03-17 15:06:48 +03:00
2022-07-07 11:29:42 +03:00
int get retries;
bool get authBlocked;
2024-08-16 14:09:01 +03:00
/// Create a copy of FidoPinFailureReason
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2024-03-26 16:07:23 +03:00
_$$FidoInvalidPinImplCopyWith<_$FidoInvalidPinImpl> get copyWith =>
throw _privateConstructorUsedError;
}
2024-03-26 16:07:23 +03:00
/// @nodoc
abstract class _$$FidoWeakPinImplCopyWith<$Res> {
factory _$$FidoWeakPinImplCopyWith(
_$FidoWeakPinImpl value, $Res Function(_$FidoWeakPinImpl) then) =
__$$FidoWeakPinImplCopyWithImpl<$Res>;
}
/// @nodoc
class __$$FidoWeakPinImplCopyWithImpl<$Res>
extends _$FidoPinFailureReasonCopyWithImpl<$Res, _$FidoWeakPinImpl>
implements _$$FidoWeakPinImplCopyWith<$Res> {
__$$FidoWeakPinImplCopyWithImpl(
_$FidoWeakPinImpl _value, $Res Function(_$FidoWeakPinImpl) _then)
: super(_value, _then);
2024-08-16 14:09:01 +03:00
/// Create a copy of FidoPinFailureReason
/// with the given fields replaced by the non-null parameter values.
2024-03-26 16:07:23 +03:00
}
/// @nodoc
class _$FidoWeakPinImpl implements FidoWeakPin {
const _$FidoWeakPinImpl();
@override
String toString() {
return 'FidoPinFailureReason.weakPin()';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType && other is _$FidoWeakPinImpl);
}
@override
int get hashCode => runtimeType.hashCode;
@override
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function(int retries, bool authBlocked) invalidPin,
required TResult Function() weakPin,
}) {
return weakPin();
}
@override
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
TResult? Function(int retries, bool authBlocked)? invalidPin,
TResult? Function()? weakPin,
}) {
return weakPin?.call();
}
@override
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function(int retries, bool authBlocked)? invalidPin,
TResult Function()? weakPin,
required TResult orElse(),
}) {
if (weakPin != null) {
return weakPin();
}
return orElse();
}
@override
@optionalTypeArgs
TResult map<TResult extends Object?>({
required TResult Function(FidoInvalidPin value) invalidPin,
required TResult Function(FidoWeakPin value) weakPin,
}) {
return weakPin(this);
}
@override
@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
TResult? Function(FidoInvalidPin value)? invalidPin,
TResult? Function(FidoWeakPin value)? weakPin,
}) {
return weakPin?.call(this);
}
@override
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
TResult Function(FidoInvalidPin value)? invalidPin,
TResult Function(FidoWeakPin value)? weakPin,
required TResult orElse(),
}) {
if (weakPin != null) {
return weakPin(this);
}
return orElse();
}
}
abstract class FidoWeakPin implements FidoPinFailureReason {
const factory FidoWeakPin() = _$FidoWeakPinImpl;
}
2022-03-23 11:49:20 +03:00
Fingerprint _$FingerprintFromJson(Map<String, dynamic> json) {
return _Fingerprint.fromJson(json);
}
/// @nodoc
mixin _$Fingerprint {
2022-03-23 11:49:20 +03:00
String get templateId => throw _privateConstructorUsedError;
String? get name => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Serializes this Fingerprint to a JSON map.
2022-03-23 11:49:20 +03:00
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Create a copy of Fingerprint
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$FingerprintCopyWith<Fingerprint> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $FingerprintCopyWith<$Res> {
factory $FingerprintCopyWith(
Fingerprint value, $Res Function(Fingerprint) then) =
2022-10-19 12:15:48 +03:00
_$FingerprintCopyWithImpl<$Res, Fingerprint>;
@useResult
2022-03-23 11:49:20 +03:00
$Res call({String templateId, String? name});
}
/// @nodoc
2022-10-19 12:15:48 +03:00
class _$FingerprintCopyWithImpl<$Res, $Val extends Fingerprint>
implements $FingerprintCopyWith<$Res> {
_$FingerprintCopyWithImpl(this._value, this._then);
// ignore: unused_field
2022-10-19 12:15:48 +03:00
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
2024-08-16 14:09:01 +03:00
/// Create a copy of Fingerprint
/// with the given fields replaced by the non-null parameter values.
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
2022-10-19 12:15:48 +03:00
Object? templateId = null,
2022-03-23 11:49:20 +03:00
Object? name = freezed,
}) {
return _then(_value.copyWith(
2022-10-19 12:15:48 +03:00
templateId: null == templateId
2022-03-23 11:49:20 +03:00
? _value.templateId
: templateId // ignore: cast_nullable_to_non_nullable
as String,
2022-10-19 12:15:48 +03:00
name: freezed == name
2022-03-23 11:49:20 +03:00
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String?,
2022-10-19 12:15:48 +03:00
) as $Val);
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _$$FingerprintImplCopyWith<$Res>
implements $FingerprintCopyWith<$Res> {
2023-11-15 10:56:52 +03:00
factory _$$FingerprintImplCopyWith(
_$FingerprintImpl value, $Res Function(_$FingerprintImpl) then) =
__$$FingerprintImplCopyWithImpl<$Res>;
@override
2022-10-19 12:15:48 +03:00
@useResult
2022-03-23 11:49:20 +03:00
$Res call({String templateId, String? name});
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$FingerprintImplCopyWithImpl<$Res>
extends _$FingerprintCopyWithImpl<$Res, _$FingerprintImpl>
implements _$$FingerprintImplCopyWith<$Res> {
__$$FingerprintImplCopyWithImpl(
_$FingerprintImpl _value, $Res Function(_$FingerprintImpl) _then)
2022-10-19 12:15:48 +03:00
: super(_value, _then);
2024-08-16 14:09:01 +03:00
/// Create a copy of Fingerprint
/// with the given fields replaced by the non-null parameter values.
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
2022-10-19 12:15:48 +03:00
Object? templateId = null,
2022-03-23 11:49:20 +03:00
Object? name = freezed,
}) {
2023-11-15 10:56:52 +03:00
return _then(_$FingerprintImpl(
2022-10-19 12:15:48 +03:00
null == templateId
2022-03-23 11:49:20 +03:00
? _value.templateId
: templateId // ignore: cast_nullable_to_non_nullable
as String,
2022-10-19 12:15:48 +03:00
freezed == name
2022-03-23 11:49:20 +03:00
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String?,
));
}
}
/// @nodoc
2022-03-23 11:49:20 +03:00
@JsonSerializable()
2023-11-15 10:56:52 +03:00
class _$FingerprintImpl extends _Fingerprint {
_$FingerprintImpl(this.templateId, this.name) : super._();
2023-11-15 10:56:52 +03:00
factory _$FingerprintImpl.fromJson(Map<String, dynamic> json) =>
_$$FingerprintImplFromJson(json);
@override
2022-03-23 11:49:20 +03:00
final String templateId;
@override
2022-03-23 11:49:20 +03:00
final String? name;
@override
String toString() {
2022-03-23 11:49:20 +03:00
return 'Fingerprint(templateId: $templateId, name: $name)';
}
@override
2024-02-02 15:52:22 +03:00
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-15 10:56:52 +03:00
other is _$FingerprintImpl &&
2022-10-19 12:15:48 +03:00
(identical(other.templateId, templateId) ||
other.templateId == templateId) &&
(identical(other.name, name) || other.name == name));
}
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
@override
2022-10-19 12:15:48 +03:00
int get hashCode => Object.hash(runtimeType, templateId, name);
2024-08-16 14:09:01 +03:00
/// Create a copy of Fingerprint
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2023-11-15 10:56:52 +03:00
_$$FingerprintImplCopyWith<_$FingerprintImpl> get copyWith =>
__$$FingerprintImplCopyWithImpl<_$FingerprintImpl>(this, _$identity);
2022-03-23 11:49:20 +03:00
@override
Map<String, dynamic> toJson() {
2023-11-15 10:56:52 +03:00
return _$$FingerprintImplToJson(
2022-07-21 17:38:45 +03:00
this,
);
2022-03-23 11:49:20 +03:00
}
}
2022-03-23 11:49:20 +03:00
abstract class _Fingerprint extends Fingerprint {
2022-05-12 12:06:28 +03:00
factory _Fingerprint(final String templateId, final String? name) =
2023-11-15 10:56:52 +03:00
_$FingerprintImpl;
2022-03-23 11:49:20 +03:00
_Fingerprint._() : super._();
factory _Fingerprint.fromJson(Map<String, dynamic> json) =
2023-11-15 10:56:52 +03:00
_$FingerprintImpl.fromJson;
@override
2022-07-07 11:29:42 +03:00
String get templateId;
@override
2022-07-07 11:29:42 +03:00
String? get name;
2024-08-16 14:09:01 +03:00
/// Create a copy of Fingerprint
/// with the given fields replaced by the non-null parameter values.
@override
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-11-15 10:56:52 +03:00
_$$FingerprintImplCopyWith<_$FingerprintImpl> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
mixin _$FingerprintEvent {
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function(int remaining) capture,
2022-03-23 11:49:20 +03:00
required TResult Function(Fingerprint fingerprint) complete,
required TResult Function(int code) error,
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
2022-10-19 12:15:48 +03:00
TResult? Function(int remaining)? capture,
TResult? Function(Fingerprint fingerprint)? complete,
TResult? Function(int code)? error,
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function(int remaining)? capture,
2022-03-23 11:49:20 +03:00
TResult Function(Fingerprint fingerprint)? complete,
TResult Function(int code)? error,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult map<TResult extends Object?>({
required TResult Function(_EventCapture value) capture,
required TResult Function(_EventComplete value) complete,
required TResult Function(_EventError value) error,
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
2022-10-19 12:15:48 +03:00
TResult? Function(_EventCapture value)? capture,
TResult? Function(_EventComplete value)? complete,
TResult? Function(_EventError value)? error,
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
TResult Function(_EventCapture value)? capture,
TResult Function(_EventComplete value)? complete,
TResult Function(_EventError value)? error,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $FingerprintEventCopyWith<$Res> {
factory $FingerprintEventCopyWith(
FingerprintEvent value, $Res Function(FingerprintEvent) then) =
2022-10-19 12:15:48 +03:00
_$FingerprintEventCopyWithImpl<$Res, FingerprintEvent>;
}
/// @nodoc
2022-10-19 12:15:48 +03:00
class _$FingerprintEventCopyWithImpl<$Res, $Val extends FingerprintEvent>
implements $FingerprintEventCopyWith<$Res> {
_$FingerprintEventCopyWithImpl(this._value, this._then);
// ignore: unused_field
2022-10-19 12:15:48 +03:00
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
2024-08-16 14:09:01 +03:00
/// Create a copy of FingerprintEvent
/// with the given fields replaced by the non-null parameter values.
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _$$EventCaptureImplCopyWith<$Res> {
factory _$$EventCaptureImplCopyWith(
_$EventCaptureImpl value, $Res Function(_$EventCaptureImpl) then) =
__$$EventCaptureImplCopyWithImpl<$Res>;
2022-10-19 12:15:48 +03:00
@useResult
$Res call({int remaining});
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$EventCaptureImplCopyWithImpl<$Res>
extends _$FingerprintEventCopyWithImpl<$Res, _$EventCaptureImpl>
implements _$$EventCaptureImplCopyWith<$Res> {
__$$EventCaptureImplCopyWithImpl(
_$EventCaptureImpl _value, $Res Function(_$EventCaptureImpl) _then)
2022-10-19 12:15:48 +03:00
: super(_value, _then);
2024-08-16 14:09:01 +03:00
/// Create a copy of FingerprintEvent
/// with the given fields replaced by the non-null parameter values.
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
2022-10-19 12:15:48 +03:00
Object? remaining = null,
}) {
2023-11-15 10:56:52 +03:00
return _then(_$EventCaptureImpl(
2022-10-19 12:15:48 +03:00
null == remaining
? _value.remaining
: remaining // ignore: cast_nullable_to_non_nullable
as int,
));
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class _$EventCaptureImpl implements _EventCapture {
_$EventCaptureImpl(this.remaining);
@override
final int remaining;
@override
String toString() {
return 'FingerprintEvent.capture(remaining: $remaining)';
}
@override
2024-02-02 15:52:22 +03:00
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-15 10:56:52 +03:00
other is _$EventCaptureImpl &&
2022-10-19 12:15:48 +03:00
(identical(other.remaining, remaining) ||
other.remaining == remaining));
}
@override
2022-10-19 12:15:48 +03:00
int get hashCode => Object.hash(runtimeType, remaining);
2024-08-16 14:09:01 +03:00
/// Create a copy of FingerprintEvent
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2023-11-15 10:56:52 +03:00
_$$EventCaptureImplCopyWith<_$EventCaptureImpl> get copyWith =>
__$$EventCaptureImplCopyWithImpl<_$EventCaptureImpl>(this, _$identity);
@override
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function(int remaining) capture,
2022-03-23 11:49:20 +03:00
required TResult Function(Fingerprint fingerprint) complete,
required TResult Function(int code) error,
}) {
return capture(remaining);
}
@override
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
2022-10-19 12:15:48 +03:00
TResult? Function(int remaining)? capture,
TResult? Function(Fingerprint fingerprint)? complete,
TResult? Function(int code)? error,
}) {
return capture?.call(remaining);
}
@override
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function(int remaining)? capture,
2022-03-23 11:49:20 +03:00
TResult Function(Fingerprint fingerprint)? complete,
TResult Function(int code)? error,
required TResult orElse(),
}) {
if (capture != null) {
return capture(remaining);
}
return orElse();
}
@override
@optionalTypeArgs
TResult map<TResult extends Object?>({
required TResult Function(_EventCapture value) capture,
required TResult Function(_EventComplete value) complete,
required TResult Function(_EventError value) error,
}) {
return capture(this);
}
@override
@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
2022-10-19 12:15:48 +03:00
TResult? Function(_EventCapture value)? capture,
TResult? Function(_EventComplete value)? complete,
TResult? Function(_EventError value)? error,
}) {
return capture?.call(this);
}
@override
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
TResult Function(_EventCapture value)? capture,
TResult Function(_EventComplete value)? complete,
TResult Function(_EventError value)? error,
required TResult orElse(),
}) {
if (capture != null) {
return capture(this);
}
return orElse();
}
}
abstract class _EventCapture implements FingerprintEvent {
2023-11-15 10:56:52 +03:00
factory _EventCapture(final int remaining) = _$EventCaptureImpl;
2022-07-07 11:29:42 +03:00
int get remaining;
2024-08-16 14:09:01 +03:00
/// Create a copy of FingerprintEvent
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-11-15 10:56:52 +03:00
_$$EventCaptureImplCopyWith<_$EventCaptureImpl> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _$$EventCompleteImplCopyWith<$Res> {
factory _$$EventCompleteImplCopyWith(
_$EventCompleteImpl value, $Res Function(_$EventCompleteImpl) then) =
__$$EventCompleteImplCopyWithImpl<$Res>;
2022-10-19 12:15:48 +03:00
@useResult
2022-03-23 11:49:20 +03:00
$Res call({Fingerprint fingerprint});
$FingerprintCopyWith<$Res> get fingerprint;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$EventCompleteImplCopyWithImpl<$Res>
extends _$FingerprintEventCopyWithImpl<$Res, _$EventCompleteImpl>
implements _$$EventCompleteImplCopyWith<$Res> {
__$$EventCompleteImplCopyWithImpl(
_$EventCompleteImpl _value, $Res Function(_$EventCompleteImpl) _then)
2022-10-19 12:15:48 +03:00
: super(_value, _then);
2024-08-16 14:09:01 +03:00
/// Create a copy of FingerprintEvent
/// with the given fields replaced by the non-null parameter values.
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
2022-10-19 12:15:48 +03:00
Object? fingerprint = null,
}) {
2023-11-15 10:56:52 +03:00
return _then(_$EventCompleteImpl(
2022-10-19 12:15:48 +03:00
null == fingerprint
2022-03-23 11:49:20 +03:00
? _value.fingerprint
: fingerprint // ignore: cast_nullable_to_non_nullable
as Fingerprint,
));
}
2022-03-23 11:49:20 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of FingerprintEvent
/// with the given fields replaced by the non-null parameter values.
2022-03-23 11:49:20 +03:00
@override
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2022-03-23 11:49:20 +03:00
$FingerprintCopyWith<$Res> get fingerprint {
return $FingerprintCopyWith<$Res>(_value.fingerprint, (value) {
return _then(_value.copyWith(fingerprint: value));
});
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class _$EventCompleteImpl implements _EventComplete {
_$EventCompleteImpl(this.fingerprint);
@override
2022-03-23 11:49:20 +03:00
final Fingerprint fingerprint;
@override
String toString() {
2022-03-23 11:49:20 +03:00
return 'FingerprintEvent.complete(fingerprint: $fingerprint)';
}
@override
2024-02-02 15:52:22 +03:00
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-15 10:56:52 +03:00
other is _$EventCompleteImpl &&
2022-10-19 12:15:48 +03:00
(identical(other.fingerprint, fingerprint) ||
other.fingerprint == fingerprint));
}
@override
2022-10-19 12:15:48 +03:00
int get hashCode => Object.hash(runtimeType, fingerprint);
2024-08-16 14:09:01 +03:00
/// Create a copy of FingerprintEvent
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2023-11-15 10:56:52 +03:00
_$$EventCompleteImplCopyWith<_$EventCompleteImpl> get copyWith =>
__$$EventCompleteImplCopyWithImpl<_$EventCompleteImpl>(this, _$identity);
@override
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function(int remaining) capture,
2022-03-23 11:49:20 +03:00
required TResult Function(Fingerprint fingerprint) complete,
required TResult Function(int code) error,
}) {
2022-03-23 11:49:20 +03:00
return complete(fingerprint);
}
@override
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
2022-10-19 12:15:48 +03:00
TResult? Function(int remaining)? capture,
TResult? Function(Fingerprint fingerprint)? complete,
TResult? Function(int code)? error,
}) {
2022-03-23 11:49:20 +03:00
return complete?.call(fingerprint);
}
@override
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function(int remaining)? capture,
2022-03-23 11:49:20 +03:00
TResult Function(Fingerprint fingerprint)? complete,
TResult Function(int code)? error,
required TResult orElse(),
}) {
if (complete != null) {
2022-03-23 11:49:20 +03:00
return complete(fingerprint);
}
return orElse();
}
@override
@optionalTypeArgs
TResult map<TResult extends Object?>({
required TResult Function(_EventCapture value) capture,
required TResult Function(_EventComplete value) complete,
required TResult Function(_EventError value) error,
}) {
return complete(this);
}
@override
@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
2022-10-19 12:15:48 +03:00
TResult? Function(_EventCapture value)? capture,
TResult? Function(_EventComplete value)? complete,
TResult? Function(_EventError value)? error,
}) {
return complete?.call(this);
}
@override
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
TResult Function(_EventCapture value)? capture,
TResult Function(_EventComplete value)? complete,
TResult Function(_EventError value)? error,
required TResult orElse(),
}) {
if (complete != null) {
return complete(this);
}
return orElse();
}
}
abstract class _EventComplete implements FingerprintEvent {
2023-11-15 10:56:52 +03:00
factory _EventComplete(final Fingerprint fingerprint) = _$EventCompleteImpl;
2022-07-07 11:29:42 +03:00
Fingerprint get fingerprint;
2024-08-16 14:09:01 +03:00
/// Create a copy of FingerprintEvent
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-11-15 10:56:52 +03:00
_$$EventCompleteImplCopyWith<_$EventCompleteImpl> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _$$EventErrorImplCopyWith<$Res> {
factory _$$EventErrorImplCopyWith(
_$EventErrorImpl value, $Res Function(_$EventErrorImpl) then) =
__$$EventErrorImplCopyWithImpl<$Res>;
2022-10-19 12:15:48 +03:00
@useResult
$Res call({int code});
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$EventErrorImplCopyWithImpl<$Res>
extends _$FingerprintEventCopyWithImpl<$Res, _$EventErrorImpl>
implements _$$EventErrorImplCopyWith<$Res> {
__$$EventErrorImplCopyWithImpl(
_$EventErrorImpl _value, $Res Function(_$EventErrorImpl) _then)
2022-10-19 12:15:48 +03:00
: super(_value, _then);
2024-08-16 14:09:01 +03:00
/// Create a copy of FingerprintEvent
/// with the given fields replaced by the non-null parameter values.
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
2022-10-19 12:15:48 +03:00
Object? code = null,
}) {
2023-11-15 10:56:52 +03:00
return _then(_$EventErrorImpl(
2022-10-19 12:15:48 +03:00
null == code
? _value.code
: code // ignore: cast_nullable_to_non_nullable
as int,
));
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class _$EventErrorImpl implements _EventError {
_$EventErrorImpl(this.code);
@override
final int code;
@override
String toString() {
return 'FingerprintEvent.error(code: $code)';
}
@override
2024-02-02 15:52:22 +03:00
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-15 10:56:52 +03:00
other is _$EventErrorImpl &&
2022-10-19 12:15:48 +03:00
(identical(other.code, code) || other.code == code));
}
@override
2022-10-19 12:15:48 +03:00
int get hashCode => Object.hash(runtimeType, code);
2024-08-16 14:09:01 +03:00
/// Create a copy of FingerprintEvent
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2023-11-15 10:56:52 +03:00
_$$EventErrorImplCopyWith<_$EventErrorImpl> get copyWith =>
__$$EventErrorImplCopyWithImpl<_$EventErrorImpl>(this, _$identity);
@override
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function(int remaining) capture,
2022-03-23 11:49:20 +03:00
required TResult Function(Fingerprint fingerprint) complete,
required TResult Function(int code) error,
}) {
return error(code);
}
@override
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
2022-10-19 12:15:48 +03:00
TResult? Function(int remaining)? capture,
TResult? Function(Fingerprint fingerprint)? complete,
TResult? Function(int code)? error,
}) {
return error?.call(code);
}
@override
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function(int remaining)? capture,
2022-03-23 11:49:20 +03:00
TResult Function(Fingerprint fingerprint)? complete,
TResult Function(int code)? error,
required TResult orElse(),
}) {
if (error != null) {
return error(code);
}
return orElse();
}
@override
@optionalTypeArgs
TResult map<TResult extends Object?>({
required TResult Function(_EventCapture value) capture,
required TResult Function(_EventComplete value) complete,
required TResult Function(_EventError value) error,
}) {
return error(this);
}
@override
@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
2022-10-19 12:15:48 +03:00
TResult? Function(_EventCapture value)? capture,
TResult? Function(_EventComplete value)? complete,
TResult? Function(_EventError value)? error,
}) {
return error?.call(this);
}
@override
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
TResult Function(_EventCapture value)? capture,
TResult Function(_EventComplete value)? complete,
TResult Function(_EventError value)? error,
required TResult orElse(),
}) {
if (error != null) {
return error(this);
}
return orElse();
}
}
abstract class _EventError implements FingerprintEvent {
2023-11-15 10:56:52 +03:00
factory _EventError(final int code) = _$EventErrorImpl;
2022-07-07 11:29:42 +03:00
int get code;
2024-08-16 14:09:01 +03:00
/// Create a copy of FingerprintEvent
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-11-15 10:56:52 +03:00
_$$EventErrorImplCopyWith<_$EventErrorImpl> get copyWith =>
throw _privateConstructorUsedError;
}
2022-03-23 19:50:49 +03:00
FidoCredential _$FidoCredentialFromJson(Map<String, dynamic> json) {
return _FidoCredential.fromJson(json);
}
/// @nodoc
mixin _$FidoCredential {
String get rpId => throw _privateConstructorUsedError;
String get credentialId => throw _privateConstructorUsedError;
2022-03-23 19:50:49 +03:00
String get userId => throw _privateConstructorUsedError;
String get userName => throw _privateConstructorUsedError;
2024-03-28 14:55:28 +03:00
String? get displayName => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Serializes this FidoCredential to a JSON map.
2022-03-23 19:50:49 +03:00
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Create a copy of FidoCredential
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$FidoCredentialCopyWith<FidoCredential> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $FidoCredentialCopyWith<$Res> {
factory $FidoCredentialCopyWith(
FidoCredential value, $Res Function(FidoCredential) then) =
2022-10-19 12:15:48 +03:00
_$FidoCredentialCopyWithImpl<$Res, FidoCredential>;
@useResult
$Res call(
{String rpId,
String credentialId,
String userId,
String userName,
2024-03-28 14:55:28 +03:00
String? displayName});
}
/// @nodoc
2022-10-19 12:15:48 +03:00
class _$FidoCredentialCopyWithImpl<$Res, $Val extends FidoCredential>
implements $FidoCredentialCopyWith<$Res> {
_$FidoCredentialCopyWithImpl(this._value, this._then);
// ignore: unused_field
2022-10-19 12:15:48 +03:00
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
2024-08-16 14:09:01 +03:00
/// Create a copy of FidoCredential
/// with the given fields replaced by the non-null parameter values.
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
2022-10-19 12:15:48 +03:00
Object? rpId = null,
Object? credentialId = null,
Object? userId = null,
Object? userName = null,
2024-03-28 14:55:28 +03:00
Object? displayName = freezed,
}) {
return _then(_value.copyWith(
2022-10-19 12:15:48 +03:00
rpId: null == rpId
? _value.rpId
: rpId // ignore: cast_nullable_to_non_nullable
as String,
2022-10-19 12:15:48 +03:00
credentialId: null == credentialId
? _value.credentialId
: credentialId // ignore: cast_nullable_to_non_nullable
as String,
2022-10-19 12:15:48 +03:00
userId: null == userId
2022-03-23 19:50:49 +03:00
? _value.userId
: userId // ignore: cast_nullable_to_non_nullable
as String,
2022-10-19 12:15:48 +03:00
userName: null == userName
? _value.userName
: userName // ignore: cast_nullable_to_non_nullable
as String,
2024-03-28 14:55:28 +03:00
displayName: freezed == displayName
? _value.displayName
: displayName // ignore: cast_nullable_to_non_nullable
2024-03-28 14:55:28 +03:00
as String?,
2022-10-19 12:15:48 +03:00
) as $Val);
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _$$FidoCredentialImplCopyWith<$Res>
implements $FidoCredentialCopyWith<$Res> {
2023-11-15 10:56:52 +03:00
factory _$$FidoCredentialImplCopyWith(_$FidoCredentialImpl value,
$Res Function(_$FidoCredentialImpl) then) =
__$$FidoCredentialImplCopyWithImpl<$Res>;
@override
2022-10-19 12:15:48 +03:00
@useResult
$Res call(
{String rpId,
String credentialId,
String userId,
String userName,
2024-03-28 14:55:28 +03:00
String? displayName});
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$FidoCredentialImplCopyWithImpl<$Res>
extends _$FidoCredentialCopyWithImpl<$Res, _$FidoCredentialImpl>
implements _$$FidoCredentialImplCopyWith<$Res> {
__$$FidoCredentialImplCopyWithImpl(
_$FidoCredentialImpl _value, $Res Function(_$FidoCredentialImpl) _then)
2022-10-19 12:15:48 +03:00
: super(_value, _then);
2024-08-16 14:09:01 +03:00
/// Create a copy of FidoCredential
/// with the given fields replaced by the non-null parameter values.
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
2022-10-19 12:15:48 +03:00
Object? rpId = null,
Object? credentialId = null,
Object? userId = null,
Object? userName = null,
2024-03-28 14:55:28 +03:00
Object? displayName = freezed,
}) {
2023-11-15 10:56:52 +03:00
return _then(_$FidoCredentialImpl(
2022-10-19 12:15:48 +03:00
rpId: null == rpId
? _value.rpId
: rpId // ignore: cast_nullable_to_non_nullable
as String,
2022-10-19 12:15:48 +03:00
credentialId: null == credentialId
? _value.credentialId
: credentialId // ignore: cast_nullable_to_non_nullable
as String,
2022-10-19 12:15:48 +03:00
userId: null == userId
2022-03-23 19:50:49 +03:00
? _value.userId
: userId // ignore: cast_nullable_to_non_nullable
as String,
2022-10-19 12:15:48 +03:00
userName: null == userName
? _value.userName
: userName // ignore: cast_nullable_to_non_nullable
as String,
2024-03-28 14:55:28 +03:00
displayName: freezed == displayName
? _value.displayName
: displayName // ignore: cast_nullable_to_non_nullable
2024-03-28 14:55:28 +03:00
as String?,
));
}
}
/// @nodoc
2022-03-23 19:50:49 +03:00
@JsonSerializable()
2023-11-15 10:56:52 +03:00
class _$FidoCredentialImpl implements _FidoCredential {
_$FidoCredentialImpl(
2022-03-23 19:50:49 +03:00
{required this.rpId,
required this.credentialId,
required this.userId,
required this.userName,
2024-03-28 14:55:28 +03:00
this.displayName});
2022-03-23 19:50:49 +03:00
2023-11-15 10:56:52 +03:00
factory _$FidoCredentialImpl.fromJson(Map<String, dynamic> json) =>
_$$FidoCredentialImplFromJson(json);
@override
final String rpId;
@override
final String credentialId;
@override
2022-03-23 19:50:49 +03:00
final String userId;
@override
final String userName;
@override
2024-03-28 14:55:28 +03:00
final String? displayName;
@override
String toString() {
return 'FidoCredential(rpId: $rpId, credentialId: $credentialId, userId: $userId, userName: $userName, displayName: $displayName)';
}
@override
2024-02-02 15:52:22 +03:00
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-15 10:56:52 +03:00
other is _$FidoCredentialImpl &&
2022-10-19 12:15:48 +03:00
(identical(other.rpId, rpId) || other.rpId == rpId) &&
(identical(other.credentialId, credentialId) ||
other.credentialId == credentialId) &&
(identical(other.userId, userId) || other.userId == userId) &&
(identical(other.userName, userName) ||
other.userName == userName) &&
(identical(other.displayName, displayName) ||
other.displayName == displayName));
}
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType, rpId, credentialId, userId, userName, displayName);
2024-08-16 14:09:01 +03:00
/// Create a copy of FidoCredential
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2023-11-15 10:56:52 +03:00
_$$FidoCredentialImplCopyWith<_$FidoCredentialImpl> get copyWith =>
__$$FidoCredentialImplCopyWithImpl<_$FidoCredentialImpl>(
this, _$identity);
2022-03-23 19:50:49 +03:00
@override
Map<String, dynamic> toJson() {
2023-11-15 10:56:52 +03:00
return _$$FidoCredentialImplToJson(
2022-07-21 17:38:45 +03:00
this,
);
2022-03-23 19:50:49 +03:00
}
}
abstract class _FidoCredential implements FidoCredential {
2022-03-23 19:50:49 +03:00
factory _FidoCredential(
2022-05-12 12:06:28 +03:00
{required final String rpId,
required final String credentialId,
required final String userId,
required final String userName,
2024-03-28 14:55:28 +03:00
final String? displayName}) = _$FidoCredentialImpl;
2022-03-23 19:50:49 +03:00
factory _FidoCredential.fromJson(Map<String, dynamic> json) =
2023-11-15 10:56:52 +03:00
_$FidoCredentialImpl.fromJson;
@override
2022-07-07 11:29:42 +03:00
String get rpId;
@override
2022-07-07 11:29:42 +03:00
String get credentialId;
@override
2022-07-07 11:29:42 +03:00
String get userId;
2022-03-23 19:50:49 +03:00
@override
2022-07-07 11:29:42 +03:00
String get userName;
@override
2024-03-28 14:55:28 +03:00
String? get displayName;
2024-08-16 14:09:01 +03:00
/// Create a copy of FidoCredential
/// with the given fields replaced by the non-null parameter values.
@override
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-11-15 10:56:52 +03:00
_$$FidoCredentialImplCopyWith<_$FidoCredentialImpl> get copyWith =>
2022-03-17 15:06:48 +03:00
throw _privateConstructorUsedError;
}