mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-26 22:03:55 +03:00
502 lines
13 KiB
Dart
Executable File
502 lines
13 KiB
Dart
Executable File
// coverage:ignore-file
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
// 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
|
|
|
|
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 informations: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
|
|
|
|
FidoState _$FidoStateFromJson(Map<String, dynamic> json) {
|
|
return _FidoState.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$FidoStateTearOff {
|
|
const _$FidoStateTearOff();
|
|
|
|
_FidoState call({required Map<String, dynamic> info, required bool locked}) {
|
|
return _FidoState(
|
|
info: info,
|
|
locked: locked,
|
|
);
|
|
}
|
|
|
|
FidoState fromJson(Map<String, Object?> json) {
|
|
return FidoState.fromJson(json);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
const $FidoState = _$FidoStateTearOff();
|
|
|
|
/// @nodoc
|
|
mixin _$FidoState {
|
|
Map<String, dynamic> get info => throw _privateConstructorUsedError;
|
|
bool get locked => throw _privateConstructorUsedError;
|
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
@JsonKey(ignore: true)
|
|
$FidoStateCopyWith<FidoState> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $FidoStateCopyWith<$Res> {
|
|
factory $FidoStateCopyWith(FidoState value, $Res Function(FidoState) then) =
|
|
_$FidoStateCopyWithImpl<$Res>;
|
|
$Res call({Map<String, dynamic> info, bool locked});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$FidoStateCopyWithImpl<$Res> implements $FidoStateCopyWith<$Res> {
|
|
_$FidoStateCopyWithImpl(this._value, this._then);
|
|
|
|
final FidoState _value;
|
|
// ignore: unused_field
|
|
final $Res Function(FidoState) _then;
|
|
|
|
@override
|
|
$Res call({
|
|
Object? info = freezed,
|
|
Object? locked = freezed,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
info: info == freezed
|
|
? _value.info
|
|
: info // ignore: cast_nullable_to_non_nullable
|
|
as Map<String, dynamic>,
|
|
locked: locked == freezed
|
|
? _value.locked
|
|
: locked // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$FidoStateCopyWith<$Res> implements $FidoStateCopyWith<$Res> {
|
|
factory _$FidoStateCopyWith(
|
|
_FidoState value, $Res Function(_FidoState) then) =
|
|
__$FidoStateCopyWithImpl<$Res>;
|
|
@override
|
|
$Res call({Map<String, dynamic> info, bool locked});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$FidoStateCopyWithImpl<$Res> extends _$FidoStateCopyWithImpl<$Res>
|
|
implements _$FidoStateCopyWith<$Res> {
|
|
__$FidoStateCopyWithImpl(_FidoState _value, $Res Function(_FidoState) _then)
|
|
: super(_value, (v) => _then(v as _FidoState));
|
|
|
|
@override
|
|
_FidoState get _value => super._value as _FidoState;
|
|
|
|
@override
|
|
$Res call({
|
|
Object? info = freezed,
|
|
Object? locked = freezed,
|
|
}) {
|
|
return _then(_FidoState(
|
|
info: info == freezed
|
|
? _value.info
|
|
: info // ignore: cast_nullable_to_non_nullable
|
|
as Map<String, dynamic>,
|
|
locked: locked == freezed
|
|
? _value.locked
|
|
: locked // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$_FidoState extends _FidoState {
|
|
_$_FidoState({required this.info, required this.locked}) : super._();
|
|
|
|
factory _$_FidoState.fromJson(Map<String, dynamic> json) =>
|
|
_$$_FidoStateFromJson(json);
|
|
|
|
@override
|
|
final Map<String, dynamic> info;
|
|
@override
|
|
final bool locked;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'FidoState(info: $info, locked: $locked)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(dynamic other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _FidoState &&
|
|
const DeepCollectionEquality().equals(other.info, info) &&
|
|
const DeepCollectionEquality().equals(other.locked, locked));
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
const DeepCollectionEquality().hash(info),
|
|
const DeepCollectionEquality().hash(locked));
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
_$FidoStateCopyWith<_FidoState> get copyWith =>
|
|
__$FidoStateCopyWithImpl<_FidoState>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$_FidoStateToJson(this);
|
|
}
|
|
}
|
|
|
|
abstract class _FidoState extends FidoState {
|
|
factory _FidoState(
|
|
{required Map<String, dynamic> info,
|
|
required bool locked}) = _$_FidoState;
|
|
_FidoState._() : super._();
|
|
|
|
factory _FidoState.fromJson(Map<String, dynamic> json) =
|
|
_$_FidoState.fromJson;
|
|
|
|
@override
|
|
Map<String, dynamic> get info;
|
|
@override
|
|
bool get locked;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
_$FidoStateCopyWith<_FidoState> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$PinResultTearOff {
|
|
const _$PinResultTearOff();
|
|
|
|
_Success success() {
|
|
return _Success();
|
|
}
|
|
|
|
_Failure failed(int retries, bool authBlocked) {
|
|
return _Failure(
|
|
retries,
|
|
authBlocked,
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
const $PinResult = _$PinResultTearOff();
|
|
|
|
/// @nodoc
|
|
mixin _$PinResult {
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function() success,
|
|
required TResult Function(int retries, bool authBlocked) failed,
|
|
}) =>
|
|
throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult Function()? success,
|
|
TResult Function(int retries, bool authBlocked)? failed,
|
|
}) =>
|
|
throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function()? success,
|
|
TResult Function(int retries, bool authBlocked)? failed,
|
|
required TResult orElse(),
|
|
}) =>
|
|
throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
required TResult Function(_Success value) success,
|
|
required TResult Function(_Failure value) failed,
|
|
}) =>
|
|
throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
TResult Function(_Success value)? success,
|
|
TResult Function(_Failure value)? failed,
|
|
}) =>
|
|
throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult maybeMap<TResult extends Object?>({
|
|
TResult Function(_Success value)? success,
|
|
TResult Function(_Failure value)? failed,
|
|
required TResult orElse(),
|
|
}) =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $PinResultCopyWith<$Res> {
|
|
factory $PinResultCopyWith(PinResult value, $Res Function(PinResult) then) =
|
|
_$PinResultCopyWithImpl<$Res>;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$PinResultCopyWithImpl<$Res> implements $PinResultCopyWith<$Res> {
|
|
_$PinResultCopyWithImpl(this._value, this._then);
|
|
|
|
final PinResult _value;
|
|
// ignore: unused_field
|
|
final $Res Function(PinResult) _then;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$SuccessCopyWith<$Res> {
|
|
factory _$SuccessCopyWith(_Success value, $Res Function(_Success) then) =
|
|
__$SuccessCopyWithImpl<$Res>;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$SuccessCopyWithImpl<$Res> extends _$PinResultCopyWithImpl<$Res>
|
|
implements _$SuccessCopyWith<$Res> {
|
|
__$SuccessCopyWithImpl(_Success _value, $Res Function(_Success) _then)
|
|
: super(_value, (v) => _then(v as _Success));
|
|
|
|
@override
|
|
_Success get _value => super._value as _Success;
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$_Success implements _Success {
|
|
_$_Success();
|
|
|
|
@override
|
|
String toString() {
|
|
return 'PinResult.success()';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(dynamic other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType && other is _Success);
|
|
}
|
|
|
|
@override
|
|
int get hashCode => runtimeType.hashCode;
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function() success,
|
|
required TResult Function(int retries, bool authBlocked) failed,
|
|
}) {
|
|
return success();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult Function()? success,
|
|
TResult Function(int retries, bool authBlocked)? failed,
|
|
}) {
|
|
return success?.call();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function()? success,
|
|
TResult Function(int retries, bool authBlocked)? failed,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (success != null) {
|
|
return success();
|
|
}
|
|
return orElse();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
required TResult Function(_Success value) success,
|
|
required TResult Function(_Failure value) failed,
|
|
}) {
|
|
return success(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
TResult Function(_Success value)? success,
|
|
TResult Function(_Failure value)? failed,
|
|
}) {
|
|
return success?.call(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeMap<TResult extends Object?>({
|
|
TResult Function(_Success value)? success,
|
|
TResult Function(_Failure value)? failed,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (success != null) {
|
|
return success(this);
|
|
}
|
|
return orElse();
|
|
}
|
|
}
|
|
|
|
abstract class _Success implements PinResult {
|
|
factory _Success() = _$_Success;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$FailureCopyWith<$Res> {
|
|
factory _$FailureCopyWith(_Failure value, $Res Function(_Failure) then) =
|
|
__$FailureCopyWithImpl<$Res>;
|
|
$Res call({int retries, bool authBlocked});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$FailureCopyWithImpl<$Res> extends _$PinResultCopyWithImpl<$Res>
|
|
implements _$FailureCopyWith<$Res> {
|
|
__$FailureCopyWithImpl(_Failure _value, $Res Function(_Failure) _then)
|
|
: super(_value, (v) => _then(v as _Failure));
|
|
|
|
@override
|
|
_Failure get _value => super._value as _Failure;
|
|
|
|
@override
|
|
$Res call({
|
|
Object? retries = freezed,
|
|
Object? authBlocked = freezed,
|
|
}) {
|
|
return _then(_Failure(
|
|
retries == freezed
|
|
? _value.retries
|
|
: retries // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
authBlocked == freezed
|
|
? _value.authBlocked
|
|
: authBlocked // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$_Failure implements _Failure {
|
|
_$_Failure(this.retries, this.authBlocked);
|
|
|
|
@override
|
|
final int retries;
|
|
@override
|
|
final bool authBlocked;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'PinResult.failed(retries: $retries, authBlocked: $authBlocked)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(dynamic other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _Failure &&
|
|
const DeepCollectionEquality().equals(other.retries, retries) &&
|
|
const DeepCollectionEquality()
|
|
.equals(other.authBlocked, authBlocked));
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
const DeepCollectionEquality().hash(retries),
|
|
const DeepCollectionEquality().hash(authBlocked));
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
_$FailureCopyWith<_Failure> get copyWith =>
|
|
__$FailureCopyWithImpl<_Failure>(this, _$identity);
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function() success,
|
|
required TResult Function(int retries, bool authBlocked) failed,
|
|
}) {
|
|
return failed(retries, authBlocked);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult Function()? success,
|
|
TResult Function(int retries, bool authBlocked)? failed,
|
|
}) {
|
|
return failed?.call(retries, authBlocked);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function()? success,
|
|
TResult Function(int retries, bool authBlocked)? failed,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (failed != null) {
|
|
return failed(retries, authBlocked);
|
|
}
|
|
return orElse();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
required TResult Function(_Success value) success,
|
|
required TResult Function(_Failure value) failed,
|
|
}) {
|
|
return failed(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
TResult Function(_Success value)? success,
|
|
TResult Function(_Failure value)? failed,
|
|
}) {
|
|
return failed?.call(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeMap<TResult extends Object?>({
|
|
TResult Function(_Success value)? success,
|
|
TResult Function(_Failure value)? failed,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (failed != null) {
|
|
return failed(this);
|
|
}
|
|
return orElse();
|
|
}
|
|
}
|
|
|
|
abstract class _Failure implements PinResult {
|
|
factory _Failure(int retries, bool authBlocked) = _$_Failure;
|
|
|
|
int get retries;
|
|
bool get authBlocked;
|
|
@JsonKey(ignore: true)
|
|
_$FailureCopyWith<_Failure> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|