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

3677 lines
111 KiB
Dart
Raw Permalink Normal View History

2023-04-27 10:13:38 +03:00
// 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(
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');
2023-04-27 10:13:38 +03:00
PinMetadata _$PinMetadataFromJson(Map<String, dynamic> json) {
return _PinMetadata.fromJson(json);
}
/// @nodoc
mixin _$PinMetadata {
bool get defaultValue => throw _privateConstructorUsedError;
int get totalAttempts => throw _privateConstructorUsedError;
int get attemptsRemaining => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Serializes this PinMetadata to a JSON map.
2023-04-27 10:13:38 +03:00
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Create a copy of PinMetadata
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
$PinMetadataCopyWith<PinMetadata> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $PinMetadataCopyWith<$Res> {
factory $PinMetadataCopyWith(
PinMetadata value, $Res Function(PinMetadata) then) =
_$PinMetadataCopyWithImpl<$Res, PinMetadata>;
@useResult
$Res call({bool defaultValue, int totalAttempts, int attemptsRemaining});
}
/// @nodoc
class _$PinMetadataCopyWithImpl<$Res, $Val extends PinMetadata>
implements $PinMetadataCopyWith<$Res> {
_$PinMetadataCopyWithImpl(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 PinMetadata
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
Object? defaultValue = null,
Object? totalAttempts = null,
Object? attemptsRemaining = null,
}) {
return _then(_value.copyWith(
defaultValue: null == defaultValue
? _value.defaultValue
: defaultValue // ignore: cast_nullable_to_non_nullable
as bool,
totalAttempts: null == totalAttempts
? _value.totalAttempts
: totalAttempts // ignore: cast_nullable_to_non_nullable
as int,
attemptsRemaining: null == attemptsRemaining
? _value.attemptsRemaining
: attemptsRemaining // ignore: cast_nullable_to_non_nullable
as int,
) as $Val);
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _$$PinMetadataImplCopyWith<$Res>
2023-04-27 10:13:38 +03:00
implements $PinMetadataCopyWith<$Res> {
2023-11-15 10:56:52 +03:00
factory _$$PinMetadataImplCopyWith(
_$PinMetadataImpl value, $Res Function(_$PinMetadataImpl) then) =
__$$PinMetadataImplCopyWithImpl<$Res>;
2023-04-27 10:13:38 +03:00
@override
@useResult
$Res call({bool defaultValue, int totalAttempts, int attemptsRemaining});
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$PinMetadataImplCopyWithImpl<$Res>
extends _$PinMetadataCopyWithImpl<$Res, _$PinMetadataImpl>
implements _$$PinMetadataImplCopyWith<$Res> {
__$$PinMetadataImplCopyWithImpl(
_$PinMetadataImpl _value, $Res Function(_$PinMetadataImpl) _then)
2023-04-27 10:13:38 +03:00
: super(_value, _then);
2024-08-16 14:09:01 +03:00
/// Create a copy of PinMetadata
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
Object? defaultValue = null,
Object? totalAttempts = null,
Object? attemptsRemaining = null,
}) {
2023-11-15 10:56:52 +03:00
return _then(_$PinMetadataImpl(
2023-04-27 10:13:38 +03:00
null == defaultValue
? _value.defaultValue
: defaultValue // ignore: cast_nullable_to_non_nullable
as bool,
null == totalAttempts
? _value.totalAttempts
: totalAttempts // ignore: cast_nullable_to_non_nullable
as int,
null == attemptsRemaining
? _value.attemptsRemaining
: attemptsRemaining // ignore: cast_nullable_to_non_nullable
as int,
));
}
}
/// @nodoc
@JsonSerializable()
2023-11-15 10:56:52 +03:00
class _$PinMetadataImpl implements _PinMetadata {
_$PinMetadataImpl(
this.defaultValue, this.totalAttempts, this.attemptsRemaining);
2023-04-27 10:13:38 +03:00
2023-11-15 10:56:52 +03:00
factory _$PinMetadataImpl.fromJson(Map<String, dynamic> json) =>
_$$PinMetadataImplFromJson(json);
2023-04-27 10:13:38 +03:00
@override
final bool defaultValue;
@override
final int totalAttempts;
@override
final int attemptsRemaining;
@override
String toString() {
return 'PinMetadata(defaultValue: $defaultValue, totalAttempts: $totalAttempts, attemptsRemaining: $attemptsRemaining)';
}
@override
2024-01-24 11:36:33 +03:00
bool operator ==(Object other) {
2023-04-27 10:13:38 +03:00
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-15 10:56:52 +03:00
other is _$PinMetadataImpl &&
2023-04-27 10:13:38 +03:00
(identical(other.defaultValue, defaultValue) ||
other.defaultValue == defaultValue) &&
(identical(other.totalAttempts, totalAttempts) ||
other.totalAttempts == totalAttempts) &&
(identical(other.attemptsRemaining, attemptsRemaining) ||
other.attemptsRemaining == attemptsRemaining));
}
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
@override
int get hashCode =>
Object.hash(runtimeType, defaultValue, totalAttempts, attemptsRemaining);
2024-08-16 14:09:01 +03:00
/// Create a copy of PinMetadata
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
@override
@pragma('vm:prefer-inline')
2023-11-15 10:56:52 +03:00
_$$PinMetadataImplCopyWith<_$PinMetadataImpl> get copyWith =>
__$$PinMetadataImplCopyWithImpl<_$PinMetadataImpl>(this, _$identity);
2023-04-27 10:13:38 +03:00
@override
Map<String, dynamic> toJson() {
2023-11-15 10:56:52 +03:00
return _$$PinMetadataImplToJson(
2023-04-27 10:13:38 +03:00
this,
);
}
}
abstract class _PinMetadata implements PinMetadata {
factory _PinMetadata(final bool defaultValue, final int totalAttempts,
2023-11-15 10:56:52 +03:00
final int attemptsRemaining) = _$PinMetadataImpl;
2023-04-27 10:13:38 +03:00
factory _PinMetadata.fromJson(Map<String, dynamic> json) =
2023-11-15 10:56:52 +03:00
_$PinMetadataImpl.fromJson;
2023-04-27 10:13:38 +03:00
@override
bool get defaultValue;
@override
int get totalAttempts;
@override
int get attemptsRemaining;
2024-08-16 14:09:01 +03:00
/// Create a copy of PinMetadata
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@override
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-11-15 10:56:52 +03:00
_$$PinMetadataImplCopyWith<_$PinMetadataImpl> get copyWith =>
2023-04-27 10:13:38 +03:00
throw _privateConstructorUsedError;
}
/// @nodoc
mixin _$PinVerificationStatus {
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function() success,
2024-03-26 16:07:23 +03:00
required TResult Function(PivPinFailureReason reason) failure,
2023-04-27 10:13:38 +03:00
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
TResult? Function()? success,
2024-03-26 16:07:23 +03:00
TResult? Function(PivPinFailureReason reason)? failure,
2023-04-27 10:13:38 +03:00
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function()? success,
2024-03-26 16:07:23 +03:00
TResult Function(PivPinFailureReason reason)? failure,
2023-04-27 10:13:38 +03:00
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult map<TResult extends Object?>({
required TResult Function(PinSuccess value) success,
required TResult Function(PinFailure value) failure,
2023-04-27 10:13:38 +03:00
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
TResult? Function(PinSuccess value)? success,
TResult? Function(PinFailure value)? failure,
2023-04-27 10:13:38 +03:00
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
TResult Function(PinSuccess value)? success,
TResult Function(PinFailure value)? failure,
2023-04-27 10:13:38 +03:00
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $PinVerificationStatusCopyWith<$Res> {
factory $PinVerificationStatusCopyWith(PinVerificationStatus value,
$Res Function(PinVerificationStatus) then) =
_$PinVerificationStatusCopyWithImpl<$Res, PinVerificationStatus>;
}
/// @nodoc
class _$PinVerificationStatusCopyWithImpl<$Res,
$Val extends PinVerificationStatus>
implements $PinVerificationStatusCopyWith<$Res> {
_$PinVerificationStatusCopyWithImpl(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 PinVerificationStatus
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +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>;
2023-04-27 10:13:38 +03:00
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$PinSuccessImplCopyWithImpl<$Res>
extends _$PinVerificationStatusCopyWithImpl<$Res, _$PinSuccessImpl>
implements _$$PinSuccessImplCopyWith<$Res> {
__$$PinSuccessImplCopyWithImpl(
_$PinSuccessImpl _value, $Res Function(_$PinSuccessImpl) _then)
2023-04-27 10:13:38 +03:00
: super(_value, _then);
2024-08-16 14:09:01 +03:00
/// Create a copy of PinVerificationStatus
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
}
/// @nodoc
class _$PinSuccessImpl implements PinSuccess {
2023-11-15 10:56:52 +03:00
const _$PinSuccessImpl();
2023-04-27 10:13:38 +03:00
@override
String toString() {
return 'PinVerificationStatus.success()';
}
@override
2024-01-24 11:36:33 +03:00
bool operator ==(Object other) {
2023-04-27 10:13:38 +03:00
return identical(this, other) ||
2023-11-15 10:56:52 +03:00
(other.runtimeType == runtimeType && other is _$PinSuccessImpl);
2023-04-27 10:13:38 +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(PivPinFailureReason reason) failure,
2023-04-27 10:13:38 +03:00
}) {
return success();
}
@override
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
TResult? Function()? success,
2024-03-26 16:07:23 +03:00
TResult? Function(PivPinFailureReason reason)? failure,
2023-04-27 10:13:38 +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(PivPinFailureReason reason)? failure,
2023-04-27 10:13:38 +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) failure,
2023-04-27 10:13:38 +03:00
}) {
return success(this);
}
@override
@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
TResult? Function(PinSuccess value)? success,
TResult? Function(PinFailure value)? failure,
2023-04-27 10:13:38 +03:00
}) {
return success?.call(this);
}
@override
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
TResult Function(PinSuccess value)? success,
TResult Function(PinFailure value)? failure,
2023-04-27 10:13:38 +03:00
required TResult orElse(),
}) {
if (success != null) {
return success(this);
}
return orElse();
}
}
abstract class PinSuccess implements PinVerificationStatus {
const factory PinSuccess() = _$PinSuccessImpl;
2023-04-27 10:13:38 +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>;
2023-04-27 10:13:38 +03:00
@useResult
2024-03-26 16:07:23 +03:00
$Res call({PivPinFailureReason reason});
$PivPinFailureReasonCopyWith<$Res> get reason;
2023-04-27 10:13:38 +03:00
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$PinFailureImplCopyWithImpl<$Res>
extends _$PinVerificationStatusCopyWithImpl<$Res, _$PinFailureImpl>
implements _$$PinFailureImplCopyWith<$Res> {
__$$PinFailureImplCopyWithImpl(
_$PinFailureImpl _value, $Res Function(_$PinFailureImpl) _then)
2023-04-27 10:13:38 +03:00
: super(_value, _then);
2024-08-16 14:09:01 +03:00
/// Create a copy of PinVerificationStatus
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
2024-03-26 16:07:23 +03:00
Object? reason = null,
2023-04-27 10:13:38 +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 PivPinFailureReason,
2023-04-27 10:13:38 +03:00
));
}
2024-03-26 16:07:23 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of PinVerificationStatus
/// with the given fields replaced by the non-null parameter values.
2024-03-26 16:07:23 +03:00
@override
@pragma('vm:prefer-inline')
$PivPinFailureReasonCopyWith<$Res> get reason {
return $PivPinFailureReasonCopyWith<$Res>(_value.reason, (value) {
return _then(_value.copyWith(reason: value));
});
}
2023-04-27 10:13:38 +03:00
}
/// @nodoc
class _$PinFailureImpl implements PinFailure {
2024-03-26 16:07:23 +03:00
_$PinFailureImpl(this.reason);
2023-04-27 10:13:38 +03:00
@override
2024-03-26 16:07:23 +03:00
final PivPinFailureReason reason;
2023-04-27 10:13:38 +03:00
@override
String toString() {
2024-03-26 16:07:23 +03:00
return 'PinVerificationStatus.failure(reason: $reason)';
2023-04-27 10:13:38 +03:00
}
@override
2024-01-24 11:36:33 +03:00
bool operator ==(Object other) {
2023-04-27 10:13:38 +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));
2023-04-27 10:13:38 +03:00
}
@override
2024-03-26 16:07:23 +03:00
int get hashCode => Object.hash(runtimeType, reason);
2023-04-27 10:13:38 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of PinVerificationStatus
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
@override
@pragma('vm:prefer-inline')
2023-11-15 10:56:52 +03:00
_$$PinFailureImplCopyWith<_$PinFailureImpl> get copyWith =>
__$$PinFailureImplCopyWithImpl<_$PinFailureImpl>(this, _$identity);
2023-04-27 10:13:38 +03:00
@override
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function() success,
2024-03-26 16:07:23 +03:00
required TResult Function(PivPinFailureReason reason) failure,
2023-04-27 10:13:38 +03:00
}) {
2024-03-26 16:07:23 +03:00
return failure(reason);
2023-04-27 10:13:38 +03:00
}
@override
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
TResult? Function()? success,
2024-03-26 16:07:23 +03:00
TResult? Function(PivPinFailureReason reason)? failure,
2023-04-27 10:13:38 +03:00
}) {
2024-03-26 16:07:23 +03:00
return failure?.call(reason);
2023-04-27 10:13:38 +03:00
}
@override
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function()? success,
2024-03-26 16:07:23 +03:00
TResult Function(PivPinFailureReason reason)? failure,
2023-04-27 10:13:38 +03:00
required TResult orElse(),
}) {
if (failure != null) {
2024-03-26 16:07:23 +03:00
return failure(reason);
2023-04-27 10:13:38 +03:00
}
return orElse();
}
@override
@optionalTypeArgs
TResult map<TResult extends Object?>({
required TResult Function(PinSuccess value) success,
required TResult Function(PinFailure value) failure,
2023-04-27 10:13:38 +03:00
}) {
return failure(this);
}
@override
@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
TResult? Function(PinSuccess value)? success,
TResult? Function(PinFailure value)? failure,
2023-04-27 10:13:38 +03:00
}) {
return failure?.call(this);
}
@override
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
TResult Function(PinSuccess value)? success,
TResult Function(PinFailure value)? failure,
2023-04-27 10:13:38 +03:00
required TResult orElse(),
}) {
if (failure != null) {
return failure(this);
}
return orElse();
}
}
abstract class PinFailure implements PinVerificationStatus {
2024-03-26 16:07:23 +03:00
factory PinFailure(final PivPinFailureReason reason) = _$PinFailureImpl;
2023-04-27 10:13:38 +03:00
2024-03-26 16:07:23 +03:00
PivPinFailureReason get reason;
2024-08-16 14:09:01 +03:00
/// Create a copy of PinVerificationStatus
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-11-15 10:56:52 +03:00
_$$PinFailureImplCopyWith<_$PinFailureImpl> get copyWith =>
2023-04-27 10:13:38 +03:00
throw _privateConstructorUsedError;
}
2024-03-26 16:07:23 +03:00
/// @nodoc
mixin _$PivPinFailureReason {
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function(int attemptsRemaining) invalidPin,
required TResult Function() weakPin,
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
TResult? Function(int attemptsRemaining)? invalidPin,
TResult? Function()? weakPin,
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function(int attemptsRemaining)? invalidPin,
TResult Function()? weakPin,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult map<TResult extends Object?>({
required TResult Function(PivInvalidPin value) invalidPin,
required TResult Function(PivWeakPin value) weakPin,
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
TResult? Function(PivInvalidPin value)? invalidPin,
TResult? Function(PivWeakPin value)? weakPin,
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
TResult Function(PivInvalidPin value)? invalidPin,
TResult Function(PivWeakPin value)? weakPin,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $PivPinFailureReasonCopyWith<$Res> {
factory $PivPinFailureReasonCopyWith(
PivPinFailureReason value, $Res Function(PivPinFailureReason) then) =
_$PivPinFailureReasonCopyWithImpl<$Res, PivPinFailureReason>;
}
/// @nodoc
class _$PivPinFailureReasonCopyWithImpl<$Res, $Val extends PivPinFailureReason>
implements $PivPinFailureReasonCopyWith<$Res> {
_$PivPinFailureReasonCopyWithImpl(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 PivPinFailureReason
/// with the given fields replaced by the non-null parameter values.
2024-03-26 16:07:23 +03:00
}
/// @nodoc
abstract class _$$PivInvalidPinImplCopyWith<$Res> {
factory _$$PivInvalidPinImplCopyWith(
_$PivInvalidPinImpl value, $Res Function(_$PivInvalidPinImpl) then) =
__$$PivInvalidPinImplCopyWithImpl<$Res>;
@useResult
$Res call({int attemptsRemaining});
}
/// @nodoc
class __$$PivInvalidPinImplCopyWithImpl<$Res>
extends _$PivPinFailureReasonCopyWithImpl<$Res, _$PivInvalidPinImpl>
implements _$$PivInvalidPinImplCopyWith<$Res> {
__$$PivInvalidPinImplCopyWithImpl(
_$PivInvalidPinImpl _value, $Res Function(_$PivInvalidPinImpl) _then)
: super(_value, _then);
2024-08-16 14:09:01 +03:00
/// Create a copy of PivPinFailureReason
/// 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? attemptsRemaining = null,
}) {
return _then(_$PivInvalidPinImpl(
null == attemptsRemaining
? _value.attemptsRemaining
: attemptsRemaining // ignore: cast_nullable_to_non_nullable
as int,
));
}
}
/// @nodoc
class _$PivInvalidPinImpl implements PivInvalidPin {
_$PivInvalidPinImpl(this.attemptsRemaining);
@override
final int attemptsRemaining;
@override
String toString() {
return 'PivPinFailureReason.invalidPin(attemptsRemaining: $attemptsRemaining)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$PivInvalidPinImpl &&
(identical(other.attemptsRemaining, attemptsRemaining) ||
other.attemptsRemaining == attemptsRemaining));
}
@override
int get hashCode => Object.hash(runtimeType, attemptsRemaining);
2024-08-16 14:09:01 +03:00
/// Create a copy of PivPinFailureReason
/// 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')
_$$PivInvalidPinImplCopyWith<_$PivInvalidPinImpl> get copyWith =>
__$$PivInvalidPinImplCopyWithImpl<_$PivInvalidPinImpl>(this, _$identity);
@override
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function(int attemptsRemaining) invalidPin,
required TResult Function() weakPin,
}) {
return invalidPin(attemptsRemaining);
}
@override
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
TResult? Function(int attemptsRemaining)? invalidPin,
TResult? Function()? weakPin,
}) {
return invalidPin?.call(attemptsRemaining);
}
@override
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function(int attemptsRemaining)? invalidPin,
TResult Function()? weakPin,
required TResult orElse(),
}) {
if (invalidPin != null) {
return invalidPin(attemptsRemaining);
}
return orElse();
}
@override
@optionalTypeArgs
TResult map<TResult extends Object?>({
required TResult Function(PivInvalidPin value) invalidPin,
required TResult Function(PivWeakPin value) weakPin,
}) {
return invalidPin(this);
}
@override
@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
TResult? Function(PivInvalidPin value)? invalidPin,
TResult? Function(PivWeakPin value)? weakPin,
}) {
return invalidPin?.call(this);
}
@override
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
TResult Function(PivInvalidPin value)? invalidPin,
TResult Function(PivWeakPin value)? weakPin,
required TResult orElse(),
}) {
if (invalidPin != null) {
return invalidPin(this);
}
return orElse();
}
}
abstract class PivInvalidPin implements PivPinFailureReason {
factory PivInvalidPin(final int attemptsRemaining) = _$PivInvalidPinImpl;
int get attemptsRemaining;
2024-08-16 14:09:01 +03:00
/// Create a copy of PivPinFailureReason
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2024-03-26 16:07:23 +03:00
_$$PivInvalidPinImplCopyWith<_$PivInvalidPinImpl> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class _$$PivWeakPinImplCopyWith<$Res> {
factory _$$PivWeakPinImplCopyWith(
_$PivWeakPinImpl value, $Res Function(_$PivWeakPinImpl) then) =
__$$PivWeakPinImplCopyWithImpl<$Res>;
}
/// @nodoc
class __$$PivWeakPinImplCopyWithImpl<$Res>
extends _$PivPinFailureReasonCopyWithImpl<$Res, _$PivWeakPinImpl>
implements _$$PivWeakPinImplCopyWith<$Res> {
__$$PivWeakPinImplCopyWithImpl(
_$PivWeakPinImpl _value, $Res Function(_$PivWeakPinImpl) _then)
: super(_value, _then);
2024-08-16 14:09:01 +03:00
/// Create a copy of PivPinFailureReason
/// with the given fields replaced by the non-null parameter values.
2024-03-26 16:07:23 +03:00
}
/// @nodoc
class _$PivWeakPinImpl implements PivWeakPin {
const _$PivWeakPinImpl();
@override
String toString() {
return 'PivPinFailureReason.weakPin()';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType && other is _$PivWeakPinImpl);
}
@override
int get hashCode => runtimeType.hashCode;
@override
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function(int attemptsRemaining) invalidPin,
required TResult Function() weakPin,
}) {
return weakPin();
}
@override
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
TResult? Function(int attemptsRemaining)? invalidPin,
TResult? Function()? weakPin,
}) {
return weakPin?.call();
}
@override
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function(int attemptsRemaining)? invalidPin,
TResult Function()? weakPin,
required TResult orElse(),
}) {
if (weakPin != null) {
return weakPin();
}
return orElse();
}
@override
@optionalTypeArgs
TResult map<TResult extends Object?>({
required TResult Function(PivInvalidPin value) invalidPin,
required TResult Function(PivWeakPin value) weakPin,
}) {
return weakPin(this);
}
@override
@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
TResult? Function(PivInvalidPin value)? invalidPin,
TResult? Function(PivWeakPin value)? weakPin,
}) {
return weakPin?.call(this);
}
@override
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
TResult Function(PivInvalidPin value)? invalidPin,
TResult Function(PivWeakPin value)? weakPin,
required TResult orElse(),
}) {
if (weakPin != null) {
return weakPin(this);
}
return orElse();
}
}
abstract class PivWeakPin implements PivPinFailureReason {
const factory PivWeakPin() = _$PivWeakPinImpl;
}
2023-04-27 10:13:38 +03:00
ManagementKeyMetadata _$ManagementKeyMetadataFromJson(
Map<String, dynamic> json) {
return _ManagementKeyMetadata.fromJson(json);
}
/// @nodoc
mixin _$ManagementKeyMetadata {
ManagementKeyType get keyType => throw _privateConstructorUsedError;
bool get defaultValue => throw _privateConstructorUsedError;
TouchPolicy get touchPolicy => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Serializes this ManagementKeyMetadata to a JSON map.
2023-04-27 10:13:38 +03:00
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Create a copy of ManagementKeyMetadata
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
$ManagementKeyMetadataCopyWith<ManagementKeyMetadata> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $ManagementKeyMetadataCopyWith<$Res> {
factory $ManagementKeyMetadataCopyWith(ManagementKeyMetadata value,
$Res Function(ManagementKeyMetadata) then) =
_$ManagementKeyMetadataCopyWithImpl<$Res, ManagementKeyMetadata>;
@useResult
$Res call(
{ManagementKeyType keyType, bool defaultValue, TouchPolicy touchPolicy});
}
/// @nodoc
class _$ManagementKeyMetadataCopyWithImpl<$Res,
$Val extends ManagementKeyMetadata>
implements $ManagementKeyMetadataCopyWith<$Res> {
_$ManagementKeyMetadataCopyWithImpl(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 ManagementKeyMetadata
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
Object? keyType = null,
Object? defaultValue = null,
Object? touchPolicy = null,
}) {
return _then(_value.copyWith(
keyType: null == keyType
? _value.keyType
: keyType // ignore: cast_nullable_to_non_nullable
as ManagementKeyType,
defaultValue: null == defaultValue
? _value.defaultValue
: defaultValue // ignore: cast_nullable_to_non_nullable
as bool,
touchPolicy: null == touchPolicy
? _value.touchPolicy
: touchPolicy // ignore: cast_nullable_to_non_nullable
as TouchPolicy,
) as $Val);
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _$$ManagementKeyMetadataImplCopyWith<$Res>
2023-04-27 10:13:38 +03:00
implements $ManagementKeyMetadataCopyWith<$Res> {
2023-11-15 10:56:52 +03:00
factory _$$ManagementKeyMetadataImplCopyWith(
_$ManagementKeyMetadataImpl value,
$Res Function(_$ManagementKeyMetadataImpl) then) =
__$$ManagementKeyMetadataImplCopyWithImpl<$Res>;
2023-04-27 10:13:38 +03:00
@override
@useResult
$Res call(
{ManagementKeyType keyType, bool defaultValue, TouchPolicy touchPolicy});
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$ManagementKeyMetadataImplCopyWithImpl<$Res>
extends _$ManagementKeyMetadataCopyWithImpl<$Res,
_$ManagementKeyMetadataImpl>
implements _$$ManagementKeyMetadataImplCopyWith<$Res> {
__$$ManagementKeyMetadataImplCopyWithImpl(_$ManagementKeyMetadataImpl _value,
$Res Function(_$ManagementKeyMetadataImpl) _then)
2023-04-27 10:13:38 +03:00
: super(_value, _then);
2024-08-16 14:09:01 +03:00
/// Create a copy of ManagementKeyMetadata
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
Object? keyType = null,
Object? defaultValue = null,
Object? touchPolicy = null,
}) {
2023-11-15 10:56:52 +03:00
return _then(_$ManagementKeyMetadataImpl(
2023-04-27 10:13:38 +03:00
null == keyType
? _value.keyType
: keyType // ignore: cast_nullable_to_non_nullable
as ManagementKeyType,
null == defaultValue
? _value.defaultValue
: defaultValue // ignore: cast_nullable_to_non_nullable
as bool,
null == touchPolicy
? _value.touchPolicy
: touchPolicy // ignore: cast_nullable_to_non_nullable
as TouchPolicy,
));
}
}
/// @nodoc
@JsonSerializable()
2023-11-15 10:56:52 +03:00
class _$ManagementKeyMetadataImpl implements _ManagementKeyMetadata {
_$ManagementKeyMetadataImpl(
this.keyType, this.defaultValue, this.touchPolicy);
2023-04-27 10:13:38 +03:00
2023-11-15 10:56:52 +03:00
factory _$ManagementKeyMetadataImpl.fromJson(Map<String, dynamic> json) =>
_$$ManagementKeyMetadataImplFromJson(json);
2023-04-27 10:13:38 +03:00
@override
final ManagementKeyType keyType;
@override
final bool defaultValue;
@override
final TouchPolicy touchPolicy;
@override
String toString() {
return 'ManagementKeyMetadata(keyType: $keyType, defaultValue: $defaultValue, touchPolicy: $touchPolicy)';
}
@override
2024-01-24 11:36:33 +03:00
bool operator ==(Object other) {
2023-04-27 10:13:38 +03:00
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-15 10:56:52 +03:00
other is _$ManagementKeyMetadataImpl &&
2023-04-27 10:13:38 +03:00
(identical(other.keyType, keyType) || other.keyType == keyType) &&
(identical(other.defaultValue, defaultValue) ||
other.defaultValue == defaultValue) &&
(identical(other.touchPolicy, touchPolicy) ||
other.touchPolicy == touchPolicy));
}
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
@override
int get hashCode =>
Object.hash(runtimeType, keyType, defaultValue, touchPolicy);
2024-08-16 14:09:01 +03:00
/// Create a copy of ManagementKeyMetadata
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
@override
@pragma('vm:prefer-inline')
2023-11-15 10:56:52 +03:00
_$$ManagementKeyMetadataImplCopyWith<_$ManagementKeyMetadataImpl>
get copyWith => __$$ManagementKeyMetadataImplCopyWithImpl<
_$ManagementKeyMetadataImpl>(this, _$identity);
2023-04-27 10:13:38 +03:00
@override
Map<String, dynamic> toJson() {
2023-11-15 10:56:52 +03:00
return _$$ManagementKeyMetadataImplToJson(
2023-04-27 10:13:38 +03:00
this,
);
}
}
abstract class _ManagementKeyMetadata implements ManagementKeyMetadata {
factory _ManagementKeyMetadata(
final ManagementKeyType keyType,
final bool defaultValue,
2023-11-15 10:56:52 +03:00
final TouchPolicy touchPolicy) = _$ManagementKeyMetadataImpl;
2023-04-27 10:13:38 +03:00
factory _ManagementKeyMetadata.fromJson(Map<String, dynamic> json) =
2023-11-15 10:56:52 +03:00
_$ManagementKeyMetadataImpl.fromJson;
2023-04-27 10:13:38 +03:00
@override
ManagementKeyType get keyType;
@override
bool get defaultValue;
@override
TouchPolicy get touchPolicy;
2024-08-16 14:09:01 +03:00
/// Create a copy of ManagementKeyMetadata
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@override
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-11-15 10:56:52 +03:00
_$$ManagementKeyMetadataImplCopyWith<_$ManagementKeyMetadataImpl>
get copyWith => throw _privateConstructorUsedError;
2023-04-27 10:13:38 +03:00
}
SlotMetadata _$SlotMetadataFromJson(Map<String, dynamic> json) {
return _SlotMetadata.fromJson(json);
}
/// @nodoc
mixin _$SlotMetadata {
KeyType get keyType => throw _privateConstructorUsedError;
PinPolicy get pinPolicy => throw _privateConstructorUsedError;
TouchPolicy get touchPolicy => throw _privateConstructorUsedError;
bool get generated => throw _privateConstructorUsedError;
String get publicKey => throw _privateConstructorUsedError;
2023-04-27 10:13:38 +03:00
2024-08-16 14:09:01 +03:00
/// Serializes this SlotMetadata to a JSON map.
2023-04-27 10:13:38 +03:00
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Create a copy of SlotMetadata
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
$SlotMetadataCopyWith<SlotMetadata> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $SlotMetadataCopyWith<$Res> {
factory $SlotMetadataCopyWith(
SlotMetadata value, $Res Function(SlotMetadata) then) =
_$SlotMetadataCopyWithImpl<$Res, SlotMetadata>;
@useResult
$Res call(
{KeyType keyType,
PinPolicy pinPolicy,
TouchPolicy touchPolicy,
bool generated,
String publicKey});
2023-04-27 10:13:38 +03:00
}
/// @nodoc
class _$SlotMetadataCopyWithImpl<$Res, $Val extends SlotMetadata>
implements $SlotMetadataCopyWith<$Res> {
_$SlotMetadataCopyWithImpl(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 SlotMetadata
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
Object? keyType = null,
Object? pinPolicy = null,
Object? touchPolicy = null,
Object? generated = null,
Object? publicKey = null,
2023-04-27 10:13:38 +03:00
}) {
return _then(_value.copyWith(
keyType: null == keyType
? _value.keyType
: keyType // ignore: cast_nullable_to_non_nullable
as KeyType,
pinPolicy: null == pinPolicy
? _value.pinPolicy
: pinPolicy // ignore: cast_nullable_to_non_nullable
as PinPolicy,
touchPolicy: null == touchPolicy
? _value.touchPolicy
: touchPolicy // ignore: cast_nullable_to_non_nullable
as TouchPolicy,
generated: null == generated
? _value.generated
: generated // ignore: cast_nullable_to_non_nullable
as bool,
publicKey: null == publicKey
? _value.publicKey
: publicKey // ignore: cast_nullable_to_non_nullable
2023-04-27 10:13:38 +03:00
as String,
) as $Val);
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _$$SlotMetadataImplCopyWith<$Res>
2023-04-27 10:13:38 +03:00
implements $SlotMetadataCopyWith<$Res> {
2023-11-15 10:56:52 +03:00
factory _$$SlotMetadataImplCopyWith(
_$SlotMetadataImpl value, $Res Function(_$SlotMetadataImpl) then) =
__$$SlotMetadataImplCopyWithImpl<$Res>;
2023-04-27 10:13:38 +03:00
@override
@useResult
$Res call(
{KeyType keyType,
PinPolicy pinPolicy,
TouchPolicy touchPolicy,
bool generated,
String publicKey});
2023-04-27 10:13:38 +03:00
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$SlotMetadataImplCopyWithImpl<$Res>
extends _$SlotMetadataCopyWithImpl<$Res, _$SlotMetadataImpl>
implements _$$SlotMetadataImplCopyWith<$Res> {
__$$SlotMetadataImplCopyWithImpl(
_$SlotMetadataImpl _value, $Res Function(_$SlotMetadataImpl) _then)
2023-04-27 10:13:38 +03:00
: super(_value, _then);
2024-08-16 14:09:01 +03:00
/// Create a copy of SlotMetadata
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
Object? keyType = null,
Object? pinPolicy = null,
Object? touchPolicy = null,
Object? generated = null,
Object? publicKey = null,
2023-04-27 10:13:38 +03:00
}) {
2023-11-15 10:56:52 +03:00
return _then(_$SlotMetadataImpl(
2023-04-27 10:13:38 +03:00
null == keyType
? _value.keyType
: keyType // ignore: cast_nullable_to_non_nullable
as KeyType,
null == pinPolicy
? _value.pinPolicy
: pinPolicy // ignore: cast_nullable_to_non_nullable
as PinPolicy,
null == touchPolicy
? _value.touchPolicy
: touchPolicy // ignore: cast_nullable_to_non_nullable
as TouchPolicy,
null == generated
? _value.generated
: generated // ignore: cast_nullable_to_non_nullable
as bool,
null == publicKey
? _value.publicKey
: publicKey // ignore: cast_nullable_to_non_nullable
2023-04-27 10:13:38 +03:00
as String,
));
}
}
/// @nodoc
@JsonSerializable()
2023-11-15 10:56:52 +03:00
class _$SlotMetadataImpl implements _SlotMetadata {
_$SlotMetadataImpl(this.keyType, this.pinPolicy, this.touchPolicy,
this.generated, this.publicKey);
2023-04-27 10:13:38 +03:00
2023-11-15 10:56:52 +03:00
factory _$SlotMetadataImpl.fromJson(Map<String, dynamic> json) =>
_$$SlotMetadataImplFromJson(json);
2023-04-27 10:13:38 +03:00
@override
final KeyType keyType;
@override
final PinPolicy pinPolicy;
@override
final TouchPolicy touchPolicy;
@override
final bool generated;
@override
final String publicKey;
2023-04-27 10:13:38 +03:00
@override
String toString() {
return 'SlotMetadata(keyType: $keyType, pinPolicy: $pinPolicy, touchPolicy: $touchPolicy, generated: $generated, publicKey: $publicKey)';
2023-04-27 10:13:38 +03:00
}
@override
2024-01-24 11:36:33 +03:00
bool operator ==(Object other) {
2023-04-27 10:13:38 +03:00
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-15 10:56:52 +03:00
other is _$SlotMetadataImpl &&
2023-04-27 10:13:38 +03:00
(identical(other.keyType, keyType) || other.keyType == keyType) &&
(identical(other.pinPolicy, pinPolicy) ||
other.pinPolicy == pinPolicy) &&
(identical(other.touchPolicy, touchPolicy) ||
other.touchPolicy == touchPolicy) &&
(identical(other.generated, generated) ||
other.generated == generated) &&
(identical(other.publicKey, publicKey) ||
other.publicKey == publicKey));
2023-04-27 10:13:38 +03:00
}
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
@override
int get hashCode => Object.hash(
runtimeType, keyType, pinPolicy, touchPolicy, generated, publicKey);
2023-04-27 10:13:38 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of SlotMetadata
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
@override
@pragma('vm:prefer-inline')
2023-11-15 10:56:52 +03:00
_$$SlotMetadataImplCopyWith<_$SlotMetadataImpl> get copyWith =>
__$$SlotMetadataImplCopyWithImpl<_$SlotMetadataImpl>(this, _$identity);
2023-04-27 10:13:38 +03:00
@override
Map<String, dynamic> toJson() {
2023-11-15 10:56:52 +03:00
return _$$SlotMetadataImplToJson(
2023-04-27 10:13:38 +03:00
this,
);
}
}
abstract class _SlotMetadata implements SlotMetadata {
factory _SlotMetadata(
final KeyType keyType,
final PinPolicy pinPolicy,
final TouchPolicy touchPolicy,
final bool generated,
final String publicKey) = _$SlotMetadataImpl;
2023-04-27 10:13:38 +03:00
factory _SlotMetadata.fromJson(Map<String, dynamic> json) =
2023-11-15 10:56:52 +03:00
_$SlotMetadataImpl.fromJson;
2023-04-27 10:13:38 +03:00
@override
KeyType get keyType;
@override
PinPolicy get pinPolicy;
@override
TouchPolicy get touchPolicy;
@override
bool get generated;
@override
String get publicKey;
2024-08-16 14:09:01 +03:00
/// Create a copy of SlotMetadata
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@override
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-11-15 10:56:52 +03:00
_$$SlotMetadataImplCopyWith<_$SlotMetadataImpl> get copyWith =>
2023-04-27 10:13:38 +03:00
throw _privateConstructorUsedError;
}
PivStateMetadata _$PivStateMetadataFromJson(Map<String, dynamic> json) {
return _PivStateMetadata.fromJson(json);
}
/// @nodoc
mixin _$PivStateMetadata {
ManagementKeyMetadata get managementKeyMetadata =>
throw _privateConstructorUsedError;
PinMetadata get pinMetadata => throw _privateConstructorUsedError;
PinMetadata get pukMetadata => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Serializes this PivStateMetadata to a JSON map.
2023-04-27 10:13:38 +03:00
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Create a copy of PivStateMetadata
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
$PivStateMetadataCopyWith<PivStateMetadata> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $PivStateMetadataCopyWith<$Res> {
factory $PivStateMetadataCopyWith(
PivStateMetadata value, $Res Function(PivStateMetadata) then) =
_$PivStateMetadataCopyWithImpl<$Res, PivStateMetadata>;
@useResult
$Res call(
{ManagementKeyMetadata managementKeyMetadata,
PinMetadata pinMetadata,
PinMetadata pukMetadata});
$ManagementKeyMetadataCopyWith<$Res> get managementKeyMetadata;
$PinMetadataCopyWith<$Res> get pinMetadata;
$PinMetadataCopyWith<$Res> get pukMetadata;
}
/// @nodoc
class _$PivStateMetadataCopyWithImpl<$Res, $Val extends PivStateMetadata>
implements $PivStateMetadataCopyWith<$Res> {
_$PivStateMetadataCopyWithImpl(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 PivStateMetadata
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
Object? managementKeyMetadata = null,
Object? pinMetadata = null,
Object? pukMetadata = null,
}) {
return _then(_value.copyWith(
managementKeyMetadata: null == managementKeyMetadata
? _value.managementKeyMetadata
: managementKeyMetadata // ignore: cast_nullable_to_non_nullable
as ManagementKeyMetadata,
pinMetadata: null == pinMetadata
? _value.pinMetadata
: pinMetadata // ignore: cast_nullable_to_non_nullable
as PinMetadata,
pukMetadata: null == pukMetadata
? _value.pukMetadata
: pukMetadata // ignore: cast_nullable_to_non_nullable
as PinMetadata,
) as $Val);
}
2024-08-16 14:09:01 +03:00
/// Create a copy of PivStateMetadata
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@override
@pragma('vm:prefer-inline')
$ManagementKeyMetadataCopyWith<$Res> get managementKeyMetadata {
return $ManagementKeyMetadataCopyWith<$Res>(_value.managementKeyMetadata,
(value) {
return _then(_value.copyWith(managementKeyMetadata: value) as $Val);
});
}
2024-08-16 14:09:01 +03:00
/// Create a copy of PivStateMetadata
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@override
@pragma('vm:prefer-inline')
$PinMetadataCopyWith<$Res> get pinMetadata {
return $PinMetadataCopyWith<$Res>(_value.pinMetadata, (value) {
return _then(_value.copyWith(pinMetadata: value) as $Val);
});
}
2024-08-16 14:09:01 +03:00
/// Create a copy of PivStateMetadata
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@override
@pragma('vm:prefer-inline')
$PinMetadataCopyWith<$Res> get pukMetadata {
return $PinMetadataCopyWith<$Res>(_value.pukMetadata, (value) {
return _then(_value.copyWith(pukMetadata: value) as $Val);
});
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _$$PivStateMetadataImplCopyWith<$Res>
2023-04-27 10:13:38 +03:00
implements $PivStateMetadataCopyWith<$Res> {
2023-11-15 10:56:52 +03:00
factory _$$PivStateMetadataImplCopyWith(_$PivStateMetadataImpl value,
$Res Function(_$PivStateMetadataImpl) then) =
__$$PivStateMetadataImplCopyWithImpl<$Res>;
2023-04-27 10:13:38 +03:00
@override
@useResult
$Res call(
{ManagementKeyMetadata managementKeyMetadata,
PinMetadata pinMetadata,
PinMetadata pukMetadata});
@override
$ManagementKeyMetadataCopyWith<$Res> get managementKeyMetadata;
@override
$PinMetadataCopyWith<$Res> get pinMetadata;
@override
$PinMetadataCopyWith<$Res> get pukMetadata;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$PivStateMetadataImplCopyWithImpl<$Res>
extends _$PivStateMetadataCopyWithImpl<$Res, _$PivStateMetadataImpl>
implements _$$PivStateMetadataImplCopyWith<$Res> {
__$$PivStateMetadataImplCopyWithImpl(_$PivStateMetadataImpl _value,
$Res Function(_$PivStateMetadataImpl) _then)
2023-04-27 10:13:38 +03:00
: super(_value, _then);
2024-08-16 14:09:01 +03:00
/// Create a copy of PivStateMetadata
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
Object? managementKeyMetadata = null,
Object? pinMetadata = null,
Object? pukMetadata = null,
}) {
2023-11-15 10:56:52 +03:00
return _then(_$PivStateMetadataImpl(
2023-04-27 10:13:38 +03:00
managementKeyMetadata: null == managementKeyMetadata
? _value.managementKeyMetadata
: managementKeyMetadata // ignore: cast_nullable_to_non_nullable
as ManagementKeyMetadata,
pinMetadata: null == pinMetadata
? _value.pinMetadata
: pinMetadata // ignore: cast_nullable_to_non_nullable
as PinMetadata,
pukMetadata: null == pukMetadata
? _value.pukMetadata
: pukMetadata // ignore: cast_nullable_to_non_nullable
as PinMetadata,
));
}
}
/// @nodoc
@JsonSerializable()
2023-11-15 10:56:52 +03:00
class _$PivStateMetadataImpl implements _PivStateMetadata {
_$PivStateMetadataImpl(
2023-04-27 10:13:38 +03:00
{required this.managementKeyMetadata,
required this.pinMetadata,
required this.pukMetadata});
2023-11-15 10:56:52 +03:00
factory _$PivStateMetadataImpl.fromJson(Map<String, dynamic> json) =>
_$$PivStateMetadataImplFromJson(json);
2023-04-27 10:13:38 +03:00
@override
final ManagementKeyMetadata managementKeyMetadata;
@override
final PinMetadata pinMetadata;
@override
final PinMetadata pukMetadata;
@override
String toString() {
return 'PivStateMetadata(managementKeyMetadata: $managementKeyMetadata, pinMetadata: $pinMetadata, pukMetadata: $pukMetadata)';
}
@override
2024-01-24 11:36:33 +03:00
bool operator ==(Object other) {
2023-04-27 10:13:38 +03:00
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-15 10:56:52 +03:00
other is _$PivStateMetadataImpl &&
2023-04-27 10:13:38 +03:00
(identical(other.managementKeyMetadata, managementKeyMetadata) ||
other.managementKeyMetadata == managementKeyMetadata) &&
(identical(other.pinMetadata, pinMetadata) ||
other.pinMetadata == pinMetadata) &&
(identical(other.pukMetadata, pukMetadata) ||
other.pukMetadata == pukMetadata));
}
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
@override
int get hashCode =>
Object.hash(runtimeType, managementKeyMetadata, pinMetadata, pukMetadata);
2024-08-16 14:09:01 +03:00
/// Create a copy of PivStateMetadata
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
@override
@pragma('vm:prefer-inline')
2023-11-15 10:56:52 +03:00
_$$PivStateMetadataImplCopyWith<_$PivStateMetadataImpl> get copyWith =>
__$$PivStateMetadataImplCopyWithImpl<_$PivStateMetadataImpl>(
this, _$identity);
2023-04-27 10:13:38 +03:00
@override
Map<String, dynamic> toJson() {
2023-11-15 10:56:52 +03:00
return _$$PivStateMetadataImplToJson(
2023-04-27 10:13:38 +03:00
this,
);
}
}
abstract class _PivStateMetadata implements PivStateMetadata {
factory _PivStateMetadata(
{required final ManagementKeyMetadata managementKeyMetadata,
required final PinMetadata pinMetadata,
2023-11-15 10:56:52 +03:00
required final PinMetadata pukMetadata}) = _$PivStateMetadataImpl;
2023-04-27 10:13:38 +03:00
factory _PivStateMetadata.fromJson(Map<String, dynamic> json) =
2023-11-15 10:56:52 +03:00
_$PivStateMetadataImpl.fromJson;
2023-04-27 10:13:38 +03:00
@override
ManagementKeyMetadata get managementKeyMetadata;
@override
PinMetadata get pinMetadata;
@override
PinMetadata get pukMetadata;
2024-08-16 14:09:01 +03:00
/// Create a copy of PivStateMetadata
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@override
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-11-15 10:56:52 +03:00
_$$PivStateMetadataImplCopyWith<_$PivStateMetadataImpl> get copyWith =>
2023-04-27 10:13:38 +03:00
throw _privateConstructorUsedError;
}
PivState _$PivStateFromJson(Map<String, dynamic> json) {
return _PivState.fromJson(json);
}
/// @nodoc
mixin _$PivState {
Version get version => throw _privateConstructorUsedError;
bool get authenticated => throw _privateConstructorUsedError;
bool get derivedKey => throw _privateConstructorUsedError;
bool get storedKey => throw _privateConstructorUsedError;
int get pinAttempts => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
bool get supportsBio => throw _privateConstructorUsedError;
2023-04-27 10:13:38 +03:00
String? get chuid => throw _privateConstructorUsedError;
String? get ccc => throw _privateConstructorUsedError;
PivStateMetadata? get metadata => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Serializes this PivState to a JSON map.
2023-04-27 10:13:38 +03:00
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Create a copy of PivState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
$PivStateCopyWith<PivState> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $PivStateCopyWith<$Res> {
factory $PivStateCopyWith(PivState value, $Res Function(PivState) then) =
_$PivStateCopyWithImpl<$Res, PivState>;
@useResult
$Res call(
{Version version,
bool authenticated,
bool derivedKey,
bool storedKey,
int pinAttempts,
2024-08-16 14:09:01 +03:00
bool supportsBio,
2023-04-27 10:13:38 +03:00
String? chuid,
String? ccc,
PivStateMetadata? metadata});
$VersionCopyWith<$Res> get version;
$PivStateMetadataCopyWith<$Res>? get metadata;
}
/// @nodoc
class _$PivStateCopyWithImpl<$Res, $Val extends PivState>
implements $PivStateCopyWith<$Res> {
_$PivStateCopyWithImpl(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 PivState
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
Object? version = null,
Object? authenticated = null,
Object? derivedKey = null,
Object? storedKey = null,
Object? pinAttempts = null,
2024-08-16 14:09:01 +03:00
Object? supportsBio = null,
2023-04-27 10:13:38 +03:00
Object? chuid = freezed,
Object? ccc = freezed,
Object? metadata = freezed,
}) {
return _then(_value.copyWith(
version: null == version
? _value.version
: version // ignore: cast_nullable_to_non_nullable
as Version,
authenticated: null == authenticated
? _value.authenticated
: authenticated // ignore: cast_nullable_to_non_nullable
as bool,
derivedKey: null == derivedKey
? _value.derivedKey
: derivedKey // ignore: cast_nullable_to_non_nullable
as bool,
storedKey: null == storedKey
? _value.storedKey
: storedKey // ignore: cast_nullable_to_non_nullable
as bool,
pinAttempts: null == pinAttempts
? _value.pinAttempts
: pinAttempts // ignore: cast_nullable_to_non_nullable
as int,
2024-08-16 14:09:01 +03:00
supportsBio: null == supportsBio
? _value.supportsBio
: supportsBio // ignore: cast_nullable_to_non_nullable
as bool,
2023-04-27 10:13:38 +03:00
chuid: freezed == chuid
? _value.chuid
: chuid // ignore: cast_nullable_to_non_nullable
as String?,
ccc: freezed == ccc
? _value.ccc
: ccc // ignore: cast_nullable_to_non_nullable
as String?,
metadata: freezed == metadata
? _value.metadata
: metadata // ignore: cast_nullable_to_non_nullable
as PivStateMetadata?,
) as $Val);
}
2024-08-16 14:09:01 +03:00
/// Create a copy of PivState
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@override
@pragma('vm:prefer-inline')
$VersionCopyWith<$Res> get version {
return $VersionCopyWith<$Res>(_value.version, (value) {
return _then(_value.copyWith(version: value) as $Val);
});
}
2024-08-16 14:09:01 +03:00
/// Create a copy of PivState
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@override
@pragma('vm:prefer-inline')
$PivStateMetadataCopyWith<$Res>? get metadata {
if (_value.metadata == null) {
return null;
}
return $PivStateMetadataCopyWith<$Res>(_value.metadata!, (value) {
return _then(_value.copyWith(metadata: value) as $Val);
});
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _$$PivStateImplCopyWith<$Res>
implements $PivStateCopyWith<$Res> {
factory _$$PivStateImplCopyWith(
_$PivStateImpl value, $Res Function(_$PivStateImpl) then) =
__$$PivStateImplCopyWithImpl<$Res>;
2023-04-27 10:13:38 +03:00
@override
@useResult
$Res call(
{Version version,
bool authenticated,
bool derivedKey,
bool storedKey,
int pinAttempts,
2024-08-16 14:09:01 +03:00
bool supportsBio,
2023-04-27 10:13:38 +03:00
String? chuid,
String? ccc,
PivStateMetadata? metadata});
@override
$VersionCopyWith<$Res> get version;
@override
$PivStateMetadataCopyWith<$Res>? get metadata;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$PivStateImplCopyWithImpl<$Res>
extends _$PivStateCopyWithImpl<$Res, _$PivStateImpl>
implements _$$PivStateImplCopyWith<$Res> {
__$$PivStateImplCopyWithImpl(
_$PivStateImpl _value, $Res Function(_$PivStateImpl) _then)
2023-04-27 10:13:38 +03:00
: super(_value, _then);
2024-08-16 14:09:01 +03:00
/// Create a copy of PivState
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
Object? version = null,
Object? authenticated = null,
Object? derivedKey = null,
Object? storedKey = null,
Object? pinAttempts = null,
2024-08-16 14:09:01 +03:00
Object? supportsBio = null,
2023-04-27 10:13:38 +03:00
Object? chuid = freezed,
Object? ccc = freezed,
Object? metadata = freezed,
}) {
2023-11-15 10:56:52 +03:00
return _then(_$PivStateImpl(
2023-04-27 10:13:38 +03:00
version: null == version
? _value.version
: version // ignore: cast_nullable_to_non_nullable
as Version,
authenticated: null == authenticated
? _value.authenticated
: authenticated // ignore: cast_nullable_to_non_nullable
as bool,
derivedKey: null == derivedKey
? _value.derivedKey
: derivedKey // ignore: cast_nullable_to_non_nullable
as bool,
storedKey: null == storedKey
? _value.storedKey
: storedKey // ignore: cast_nullable_to_non_nullable
as bool,
pinAttempts: null == pinAttempts
? _value.pinAttempts
: pinAttempts // ignore: cast_nullable_to_non_nullable
as int,
2024-08-16 14:09:01 +03:00
supportsBio: null == supportsBio
? _value.supportsBio
: supportsBio // ignore: cast_nullable_to_non_nullable
as bool,
2023-04-27 10:13:38 +03:00
chuid: freezed == chuid
? _value.chuid
: chuid // ignore: cast_nullable_to_non_nullable
as String?,
ccc: freezed == ccc
? _value.ccc
: ccc // ignore: cast_nullable_to_non_nullable
as String?,
metadata: freezed == metadata
? _value.metadata
: metadata // ignore: cast_nullable_to_non_nullable
as PivStateMetadata?,
));
}
}
/// @nodoc
@JsonSerializable()
2023-11-15 10:56:52 +03:00
class _$PivStateImpl extends _PivState {
_$PivStateImpl(
2023-04-27 10:13:38 +03:00
{required this.version,
required this.authenticated,
required this.derivedKey,
required this.storedKey,
required this.pinAttempts,
2024-08-16 14:09:01 +03:00
required this.supportsBio,
2023-04-27 10:13:38 +03:00
this.chuid,
this.ccc,
this.metadata})
: super._();
2023-11-15 10:56:52 +03:00
factory _$PivStateImpl.fromJson(Map<String, dynamic> json) =>
_$$PivStateImplFromJson(json);
2023-04-27 10:13:38 +03:00
@override
final Version version;
@override
final bool authenticated;
@override
final bool derivedKey;
@override
final bool storedKey;
@override
final int pinAttempts;
@override
2024-08-16 14:09:01 +03:00
final bool supportsBio;
@override
2023-04-27 10:13:38 +03:00
final String? chuid;
@override
final String? ccc;
@override
final PivStateMetadata? metadata;
@override
String toString() {
2024-08-16 14:09:01 +03:00
return 'PivState(version: $version, authenticated: $authenticated, derivedKey: $derivedKey, storedKey: $storedKey, pinAttempts: $pinAttempts, supportsBio: $supportsBio, chuid: $chuid, ccc: $ccc, metadata: $metadata)';
2023-04-27 10:13:38 +03:00
}
@override
2024-01-24 11:36:33 +03:00
bool operator ==(Object other) {
2023-04-27 10:13:38 +03:00
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-15 10:56:52 +03:00
other is _$PivStateImpl &&
2023-04-27 10:13:38 +03:00
(identical(other.version, version) || other.version == version) &&
(identical(other.authenticated, authenticated) ||
other.authenticated == authenticated) &&
(identical(other.derivedKey, derivedKey) ||
other.derivedKey == derivedKey) &&
(identical(other.storedKey, storedKey) ||
other.storedKey == storedKey) &&
(identical(other.pinAttempts, pinAttempts) ||
other.pinAttempts == pinAttempts) &&
2024-08-16 14:09:01 +03:00
(identical(other.supportsBio, supportsBio) ||
other.supportsBio == supportsBio) &&
2023-04-27 10:13:38 +03:00
(identical(other.chuid, chuid) || other.chuid == chuid) &&
(identical(other.ccc, ccc) || other.ccc == ccc) &&
(identical(other.metadata, metadata) ||
other.metadata == metadata));
}
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
@override
int get hashCode => Object.hash(runtimeType, version, authenticated,
2024-08-16 14:09:01 +03:00
derivedKey, storedKey, pinAttempts, supportsBio, chuid, ccc, metadata);
2023-04-27 10:13:38 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of PivState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
@override
@pragma('vm:prefer-inline')
2023-11-15 10:56:52 +03:00
_$$PivStateImplCopyWith<_$PivStateImpl> get copyWith =>
__$$PivStateImplCopyWithImpl<_$PivStateImpl>(this, _$identity);
2023-04-27 10:13:38 +03:00
@override
Map<String, dynamic> toJson() {
2023-11-15 10:56:52 +03:00
return _$$PivStateImplToJson(
2023-04-27 10:13:38 +03:00
this,
);
}
}
abstract class _PivState extends PivState {
factory _PivState(
{required final Version version,
required final bool authenticated,
required final bool derivedKey,
required final bool storedKey,
required final int pinAttempts,
2024-08-16 14:09:01 +03:00
required final bool supportsBio,
2023-04-27 10:13:38 +03:00
final String? chuid,
final String? ccc,
2023-11-15 10:56:52 +03:00
final PivStateMetadata? metadata}) = _$PivStateImpl;
2023-04-27 10:13:38 +03:00
_PivState._() : super._();
2023-11-15 10:56:52 +03:00
factory _PivState.fromJson(Map<String, dynamic> json) =
_$PivStateImpl.fromJson;
2023-04-27 10:13:38 +03:00
@override
Version get version;
@override
bool get authenticated;
@override
bool get derivedKey;
@override
bool get storedKey;
@override
int get pinAttempts;
@override
2024-08-16 14:09:01 +03:00
bool get supportsBio;
@override
2023-04-27 10:13:38 +03:00
String? get chuid;
@override
String? get ccc;
@override
PivStateMetadata? get metadata;
2024-08-16 14:09:01 +03:00
/// Create a copy of PivState
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@override
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-11-15 10:56:52 +03:00
_$$PivStateImplCopyWith<_$PivStateImpl> get copyWith =>
2023-04-27 10:13:38 +03:00
throw _privateConstructorUsedError;
}
CertInfo _$CertInfoFromJson(Map<String, dynamic> json) {
return _CertInfo.fromJson(json);
}
/// @nodoc
mixin _$CertInfo {
KeyType? get keyType => throw _privateConstructorUsedError;
2023-04-27 10:13:38 +03:00
String get subject => throw _privateConstructorUsedError;
String get issuer => throw _privateConstructorUsedError;
String get serial => throw _privateConstructorUsedError;
String get notValidBefore => throw _privateConstructorUsedError;
String get notValidAfter => throw _privateConstructorUsedError;
String get fingerprint => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Serializes this CertInfo to a JSON map.
2023-04-27 10:13:38 +03:00
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Create a copy of CertInfo
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
$CertInfoCopyWith<CertInfo> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $CertInfoCopyWith<$Res> {
factory $CertInfoCopyWith(CertInfo value, $Res Function(CertInfo) then) =
_$CertInfoCopyWithImpl<$Res, CertInfo>;
@useResult
$Res call(
{KeyType? keyType,
String subject,
2023-04-27 10:13:38 +03:00
String issuer,
String serial,
String notValidBefore,
String notValidAfter,
String fingerprint});
}
/// @nodoc
class _$CertInfoCopyWithImpl<$Res, $Val extends CertInfo>
implements $CertInfoCopyWith<$Res> {
_$CertInfoCopyWithImpl(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 CertInfo
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
Object? keyType = freezed,
2023-04-27 10:13:38 +03:00
Object? subject = null,
Object? issuer = null,
Object? serial = null,
Object? notValidBefore = null,
Object? notValidAfter = null,
Object? fingerprint = null,
}) {
return _then(_value.copyWith(
keyType: freezed == keyType
? _value.keyType
: keyType // ignore: cast_nullable_to_non_nullable
as KeyType?,
2023-04-27 10:13:38 +03:00
subject: null == subject
? _value.subject
: subject // ignore: cast_nullable_to_non_nullable
as String,
issuer: null == issuer
? _value.issuer
: issuer // ignore: cast_nullable_to_non_nullable
as String,
serial: null == serial
? _value.serial
: serial // ignore: cast_nullable_to_non_nullable
as String,
notValidBefore: null == notValidBefore
? _value.notValidBefore
: notValidBefore // ignore: cast_nullable_to_non_nullable
as String,
notValidAfter: null == notValidAfter
? _value.notValidAfter
: notValidAfter // ignore: cast_nullable_to_non_nullable
as String,
fingerprint: null == fingerprint
? _value.fingerprint
: fingerprint // ignore: cast_nullable_to_non_nullable
as String,
) as $Val);
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _$$CertInfoImplCopyWith<$Res>
implements $CertInfoCopyWith<$Res> {
factory _$$CertInfoImplCopyWith(
_$CertInfoImpl value, $Res Function(_$CertInfoImpl) then) =
__$$CertInfoImplCopyWithImpl<$Res>;
2023-04-27 10:13:38 +03:00
@override
@useResult
$Res call(
{KeyType? keyType,
String subject,
2023-04-27 10:13:38 +03:00
String issuer,
String serial,
String notValidBefore,
String notValidAfter,
String fingerprint});
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$CertInfoImplCopyWithImpl<$Res>
extends _$CertInfoCopyWithImpl<$Res, _$CertInfoImpl>
implements _$$CertInfoImplCopyWith<$Res> {
__$$CertInfoImplCopyWithImpl(
_$CertInfoImpl _value, $Res Function(_$CertInfoImpl) _then)
2023-04-27 10:13:38 +03:00
: super(_value, _then);
2024-08-16 14:09:01 +03:00
/// Create a copy of CertInfo
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
Object? keyType = freezed,
2023-04-27 10:13:38 +03:00
Object? subject = null,
Object? issuer = null,
Object? serial = null,
Object? notValidBefore = null,
Object? notValidAfter = null,
Object? fingerprint = null,
}) {
2023-11-15 10:56:52 +03:00
return _then(_$CertInfoImpl(
keyType: freezed == keyType
? _value.keyType
: keyType // ignore: cast_nullable_to_non_nullable
as KeyType?,
2023-04-27 10:13:38 +03:00
subject: null == subject
? _value.subject
: subject // ignore: cast_nullable_to_non_nullable
as String,
issuer: null == issuer
? _value.issuer
: issuer // ignore: cast_nullable_to_non_nullable
as String,
serial: null == serial
? _value.serial
: serial // ignore: cast_nullable_to_non_nullable
as String,
notValidBefore: null == notValidBefore
? _value.notValidBefore
: notValidBefore // ignore: cast_nullable_to_non_nullable
as String,
notValidAfter: null == notValidAfter
? _value.notValidAfter
: notValidAfter // ignore: cast_nullable_to_non_nullable
as String,
fingerprint: null == fingerprint
? _value.fingerprint
: fingerprint // ignore: cast_nullable_to_non_nullable
as String,
));
}
}
/// @nodoc
@JsonSerializable()
2023-11-15 10:56:52 +03:00
class _$CertInfoImpl implements _CertInfo {
_$CertInfoImpl(
{required this.keyType,
required this.subject,
2023-04-27 10:13:38 +03:00
required this.issuer,
required this.serial,
required this.notValidBefore,
required this.notValidAfter,
required this.fingerprint});
2023-11-15 10:56:52 +03:00
factory _$CertInfoImpl.fromJson(Map<String, dynamic> json) =>
_$$CertInfoImplFromJson(json);
2023-04-27 10:13:38 +03:00
@override
final KeyType? keyType;
2023-04-27 10:13:38 +03:00
@override
final String subject;
@override
final String issuer;
@override
final String serial;
@override
final String notValidBefore;
@override
final String notValidAfter;
@override
final String fingerprint;
@override
String toString() {
return 'CertInfo(keyType: $keyType, subject: $subject, issuer: $issuer, serial: $serial, notValidBefore: $notValidBefore, notValidAfter: $notValidAfter, fingerprint: $fingerprint)';
2023-04-27 10:13:38 +03:00
}
@override
2024-01-24 11:36:33 +03:00
bool operator ==(Object other) {
2023-04-27 10:13:38 +03:00
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-15 10:56:52 +03:00
other is _$CertInfoImpl &&
(identical(other.keyType, keyType) || other.keyType == keyType) &&
2023-04-27 10:13:38 +03:00
(identical(other.subject, subject) || other.subject == subject) &&
(identical(other.issuer, issuer) || other.issuer == issuer) &&
(identical(other.serial, serial) || other.serial == serial) &&
(identical(other.notValidBefore, notValidBefore) ||
other.notValidBefore == notValidBefore) &&
(identical(other.notValidAfter, notValidAfter) ||
other.notValidAfter == notValidAfter) &&
(identical(other.fingerprint, fingerprint) ||
other.fingerprint == fingerprint));
}
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
@override
int get hashCode => Object.hash(runtimeType, keyType, subject, issuer, serial,
2023-04-27 10:13:38 +03:00
notValidBefore, notValidAfter, fingerprint);
2024-08-16 14:09:01 +03:00
/// Create a copy of CertInfo
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
@override
@pragma('vm:prefer-inline')
2023-11-15 10:56:52 +03:00
_$$CertInfoImplCopyWith<_$CertInfoImpl> get copyWith =>
__$$CertInfoImplCopyWithImpl<_$CertInfoImpl>(this, _$identity);
2023-04-27 10:13:38 +03:00
@override
Map<String, dynamic> toJson() {
2023-11-15 10:56:52 +03:00
return _$$CertInfoImplToJson(
2023-04-27 10:13:38 +03:00
this,
);
}
}
abstract class _CertInfo implements CertInfo {
factory _CertInfo(
{required final KeyType? keyType,
required final String subject,
2023-04-27 10:13:38 +03:00
required final String issuer,
required final String serial,
required final String notValidBefore,
required final String notValidAfter,
2023-11-15 10:56:52 +03:00
required final String fingerprint}) = _$CertInfoImpl;
2023-04-27 10:13:38 +03:00
2023-11-15 10:56:52 +03:00
factory _CertInfo.fromJson(Map<String, dynamic> json) =
_$CertInfoImpl.fromJson;
2023-04-27 10:13:38 +03:00
@override
KeyType? get keyType;
2023-04-27 10:13:38 +03:00
@override
String get subject;
@override
String get issuer;
@override
String get serial;
@override
String get notValidBefore;
@override
String get notValidAfter;
@override
String get fingerprint;
2024-08-16 14:09:01 +03:00
/// Create a copy of CertInfo
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@override
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-11-15 10:56:52 +03:00
_$$CertInfoImplCopyWith<_$CertInfoImpl> get copyWith =>
2023-04-27 10:13:38 +03:00
throw _privateConstructorUsedError;
}
PivSlot _$PivSlotFromJson(Map<String, dynamic> json) {
return _PivSlot.fromJson(json);
}
/// @nodoc
mixin _$PivSlot {
SlotId get slot => throw _privateConstructorUsedError;
SlotMetadata? get metadata => throw _privateConstructorUsedError;
2023-04-27 10:13:38 +03:00
CertInfo? get certInfo => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Serializes this PivSlot to a JSON map.
2023-04-27 10:13:38 +03:00
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Create a copy of PivSlot
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
$PivSlotCopyWith<PivSlot> get copyWith => throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $PivSlotCopyWith<$Res> {
factory $PivSlotCopyWith(PivSlot value, $Res Function(PivSlot) then) =
_$PivSlotCopyWithImpl<$Res, PivSlot>;
@useResult
$Res call({SlotId slot, SlotMetadata? metadata, CertInfo? certInfo});
2023-04-27 10:13:38 +03:00
$SlotMetadataCopyWith<$Res>? get metadata;
2023-04-27 10:13:38 +03:00
$CertInfoCopyWith<$Res>? get certInfo;
}
/// @nodoc
class _$PivSlotCopyWithImpl<$Res, $Val extends PivSlot>
implements $PivSlotCopyWith<$Res> {
_$PivSlotCopyWithImpl(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 PivSlot
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
Object? slot = null,
Object? metadata = freezed,
2023-04-27 10:13:38 +03:00
Object? certInfo = freezed,
}) {
return _then(_value.copyWith(
slot: null == slot
? _value.slot
: slot // ignore: cast_nullable_to_non_nullable
as SlotId,
metadata: freezed == metadata
? _value.metadata
: metadata // ignore: cast_nullable_to_non_nullable
as SlotMetadata?,
2023-04-27 10:13:38 +03:00
certInfo: freezed == certInfo
? _value.certInfo
: certInfo // ignore: cast_nullable_to_non_nullable
as CertInfo?,
) as $Val);
}
2024-08-16 14:09:01 +03:00
/// Create a copy of PivSlot
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$SlotMetadataCopyWith<$Res>? get metadata {
if (_value.metadata == null) {
return null;
}
return $SlotMetadataCopyWith<$Res>(_value.metadata!, (value) {
return _then(_value.copyWith(metadata: value) as $Val);
});
}
2024-08-16 14:09:01 +03:00
/// Create a copy of PivSlot
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@override
@pragma('vm:prefer-inline')
$CertInfoCopyWith<$Res>? get certInfo {
if (_value.certInfo == null) {
return null;
}
return $CertInfoCopyWith<$Res>(_value.certInfo!, (value) {
return _then(_value.copyWith(certInfo: value) as $Val);
});
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _$$PivSlotImplCopyWith<$Res> implements $PivSlotCopyWith<$Res> {
factory _$$PivSlotImplCopyWith(
_$PivSlotImpl value, $Res Function(_$PivSlotImpl) then) =
__$$PivSlotImplCopyWithImpl<$Res>;
2023-04-27 10:13:38 +03:00
@override
@useResult
$Res call({SlotId slot, SlotMetadata? metadata, CertInfo? certInfo});
2023-04-27 10:13:38 +03:00
@override
$SlotMetadataCopyWith<$Res>? get metadata;
2023-04-27 10:13:38 +03:00
@override
$CertInfoCopyWith<$Res>? get certInfo;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$PivSlotImplCopyWithImpl<$Res>
extends _$PivSlotCopyWithImpl<$Res, _$PivSlotImpl>
implements _$$PivSlotImplCopyWith<$Res> {
__$$PivSlotImplCopyWithImpl(
_$PivSlotImpl _value, $Res Function(_$PivSlotImpl) _then)
2023-04-27 10:13:38 +03:00
: super(_value, _then);
2024-08-16 14:09:01 +03:00
/// Create a copy of PivSlot
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
Object? slot = null,
Object? metadata = freezed,
2023-04-27 10:13:38 +03:00
Object? certInfo = freezed,
}) {
2023-11-15 10:56:52 +03:00
return _then(_$PivSlotImpl(
2023-04-27 10:13:38 +03:00
slot: null == slot
? _value.slot
: slot // ignore: cast_nullable_to_non_nullable
as SlotId,
metadata: freezed == metadata
? _value.metadata
: metadata // ignore: cast_nullable_to_non_nullable
as SlotMetadata?,
2023-04-27 10:13:38 +03:00
certInfo: freezed == certInfo
? _value.certInfo
: certInfo // ignore: cast_nullable_to_non_nullable
as CertInfo?,
));
}
}
/// @nodoc
@JsonSerializable()
2023-11-15 10:56:52 +03:00
class _$PivSlotImpl implements _PivSlot {
_$PivSlotImpl({required this.slot, this.metadata, this.certInfo});
2023-04-27 10:13:38 +03:00
2023-11-15 10:56:52 +03:00
factory _$PivSlotImpl.fromJson(Map<String, dynamic> json) =>
_$$PivSlotImplFromJson(json);
2023-04-27 10:13:38 +03:00
@override
final SlotId slot;
@override
final SlotMetadata? metadata;
2023-04-27 10:13:38 +03:00
@override
final CertInfo? certInfo;
@override
String toString() {
return 'PivSlot(slot: $slot, metadata: $metadata, certInfo: $certInfo)';
2023-04-27 10:13:38 +03:00
}
@override
2024-01-24 11:36:33 +03:00
bool operator ==(Object other) {
2023-04-27 10:13:38 +03:00
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-15 10:56:52 +03:00
other is _$PivSlotImpl &&
2023-04-27 10:13:38 +03:00
(identical(other.slot, slot) || other.slot == slot) &&
(identical(other.metadata, metadata) ||
other.metadata == metadata) &&
2023-04-27 10:13:38 +03:00
(identical(other.certInfo, certInfo) ||
other.certInfo == certInfo));
}
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
@override
int get hashCode => Object.hash(runtimeType, slot, metadata, certInfo);
2023-04-27 10:13:38 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of PivSlot
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
@override
@pragma('vm:prefer-inline')
2023-11-15 10:56:52 +03:00
_$$PivSlotImplCopyWith<_$PivSlotImpl> get copyWith =>
__$$PivSlotImplCopyWithImpl<_$PivSlotImpl>(this, _$identity);
2023-04-27 10:13:38 +03:00
@override
Map<String, dynamic> toJson() {
2023-11-15 10:56:52 +03:00
return _$$PivSlotImplToJson(
2023-04-27 10:13:38 +03:00
this,
);
}
}
abstract class _PivSlot implements PivSlot {
factory _PivSlot(
{required final SlotId slot,
final SlotMetadata? metadata,
2023-11-15 10:56:52 +03:00
final CertInfo? certInfo}) = _$PivSlotImpl;
2023-04-27 10:13:38 +03:00
2023-11-15 10:56:52 +03:00
factory _PivSlot.fromJson(Map<String, dynamic> json) = _$PivSlotImpl.fromJson;
2023-04-27 10:13:38 +03:00
@override
SlotId get slot;
@override
SlotMetadata? get metadata;
2023-04-27 10:13:38 +03:00
@override
CertInfo? get certInfo;
2024-08-16 14:09:01 +03:00
/// Create a copy of PivSlot
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@override
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-11-15 10:56:52 +03:00
_$$PivSlotImplCopyWith<_$PivSlotImpl> get copyWith =>
2023-04-27 10:13:38 +03:00
throw _privateConstructorUsedError;
}
PivExamineResult _$PivExamineResultFromJson(Map<String, dynamic> json) {
switch (json['runtimeType']) {
case 'result':
return _ExamineResult.fromJson(json);
case 'invalidPassword':
return _InvalidPassword.fromJson(json);
default:
throw CheckedFromJsonException(json, 'runtimeType', 'PivExamineResult',
'Invalid union type "${json['runtimeType']}"!');
}
}
/// @nodoc
mixin _$PivExamineResult {
@optionalTypeArgs
TResult when<TResult extends Object?>({
2023-08-23 16:53:30 +03:00
required TResult Function(
bool password, KeyType? keyType, CertInfo? certInfo)
2023-04-27 10:13:38 +03:00
result,
required TResult Function() invalidPassword,
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
2023-08-23 16:53:30 +03:00
TResult? Function(bool password, KeyType? keyType, CertInfo? certInfo)?
result,
2023-04-27 10:13:38 +03:00
TResult? Function()? invalidPassword,
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
2023-08-23 16:53:30 +03:00
TResult Function(bool password, KeyType? keyType, CertInfo? certInfo)?
result,
2023-04-27 10:13:38 +03:00
TResult Function()? invalidPassword,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult map<TResult extends Object?>({
required TResult Function(_ExamineResult value) result,
required TResult Function(_InvalidPassword value) invalidPassword,
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
TResult? Function(_ExamineResult value)? result,
TResult? Function(_InvalidPassword value)? invalidPassword,
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
TResult Function(_ExamineResult value)? result,
TResult Function(_InvalidPassword value)? invalidPassword,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Serializes this PivExamineResult to a JSON map.
2023-04-27 10:13:38 +03:00
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $PivExamineResultCopyWith<$Res> {
factory $PivExamineResultCopyWith(
PivExamineResult value, $Res Function(PivExamineResult) then) =
_$PivExamineResultCopyWithImpl<$Res, PivExamineResult>;
}
/// @nodoc
class _$PivExamineResultCopyWithImpl<$Res, $Val extends PivExamineResult>
implements $PivExamineResultCopyWith<$Res> {
_$PivExamineResultCopyWithImpl(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 PivExamineResult
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _$$ExamineResultImplCopyWith<$Res> {
factory _$$ExamineResultImplCopyWith(
_$ExamineResultImpl value, $Res Function(_$ExamineResultImpl) then) =
__$$ExamineResultImplCopyWithImpl<$Res>;
2023-04-27 10:13:38 +03:00
@useResult
2023-08-23 16:53:30 +03:00
$Res call({bool password, KeyType? keyType, CertInfo? certInfo});
$CertInfoCopyWith<$Res>? get certInfo;
2023-04-27 10:13:38 +03:00
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$ExamineResultImplCopyWithImpl<$Res>
extends _$PivExamineResultCopyWithImpl<$Res, _$ExamineResultImpl>
implements _$$ExamineResultImplCopyWith<$Res> {
__$$ExamineResultImplCopyWithImpl(
_$ExamineResultImpl _value, $Res Function(_$ExamineResultImpl) _then)
2023-04-27 10:13:38 +03:00
: super(_value, _then);
2024-08-16 14:09:01 +03:00
/// Create a copy of PivExamineResult
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
Object? password = null,
2023-08-23 16:53:30 +03:00
Object? keyType = freezed,
Object? certInfo = freezed,
2023-04-27 10:13:38 +03:00
}) {
2023-11-15 10:56:52 +03:00
return _then(_$ExamineResultImpl(
2023-04-27 10:13:38 +03:00
password: null == password
? _value.password
: password // ignore: cast_nullable_to_non_nullable
as bool,
2023-08-23 16:53:30 +03:00
keyType: freezed == keyType
? _value.keyType
: keyType // ignore: cast_nullable_to_non_nullable
as KeyType?,
certInfo: freezed == certInfo
? _value.certInfo
: certInfo // ignore: cast_nullable_to_non_nullable
as CertInfo?,
2023-04-27 10:13:38 +03:00
));
}
2023-08-23 16:53:30 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of PivExamineResult
/// with the given fields replaced by the non-null parameter values.
2023-08-23 16:53:30 +03:00
@override
@pragma('vm:prefer-inline')
$CertInfoCopyWith<$Res>? get certInfo {
if (_value.certInfo == null) {
return null;
}
return $CertInfoCopyWith<$Res>(_value.certInfo!, (value) {
return _then(_value.copyWith(certInfo: value));
});
}
2023-04-27 10:13:38 +03:00
}
/// @nodoc
@JsonSerializable()
2023-11-15 10:56:52 +03:00
class _$ExamineResultImpl implements _ExamineResult {
_$ExamineResultImpl(
2023-04-27 10:13:38 +03:00
{required this.password,
2023-08-23 16:53:30 +03:00
required this.keyType,
required this.certInfo,
2023-04-27 10:13:38 +03:00
final String? $type})
: $type = $type ?? 'result';
2023-11-15 10:56:52 +03:00
factory _$ExamineResultImpl.fromJson(Map<String, dynamic> json) =>
_$$ExamineResultImplFromJson(json);
2023-04-27 10:13:38 +03:00
@override
final bool password;
@override
2023-08-23 16:53:30 +03:00
final KeyType? keyType;
2023-04-27 10:13:38 +03:00
@override
2023-08-23 16:53:30 +03:00
final CertInfo? certInfo;
2023-04-27 10:13:38 +03:00
@JsonKey(name: 'runtimeType')
final String $type;
@override
String toString() {
2023-08-23 16:53:30 +03:00
return 'PivExamineResult.result(password: $password, keyType: $keyType, certInfo: $certInfo)';
2023-04-27 10:13:38 +03:00
}
@override
2024-01-24 11:36:33 +03:00
bool operator ==(Object other) {
2023-04-27 10:13:38 +03:00
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-15 10:56:52 +03:00
other is _$ExamineResultImpl &&
2023-04-27 10:13:38 +03:00
(identical(other.password, password) ||
other.password == password) &&
2023-08-23 16:53:30 +03:00
(identical(other.keyType, keyType) || other.keyType == keyType) &&
(identical(other.certInfo, certInfo) ||
other.certInfo == certInfo));
2023-04-27 10:13:38 +03:00
}
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
@override
2023-08-23 16:53:30 +03:00
int get hashCode => Object.hash(runtimeType, password, keyType, certInfo);
2023-04-27 10:13:38 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of PivExamineResult
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
@override
@pragma('vm:prefer-inline')
2023-11-15 10:56:52 +03:00
_$$ExamineResultImplCopyWith<_$ExamineResultImpl> get copyWith =>
__$$ExamineResultImplCopyWithImpl<_$ExamineResultImpl>(this, _$identity);
2023-04-27 10:13:38 +03:00
@override
@optionalTypeArgs
TResult when<TResult extends Object?>({
2023-08-23 16:53:30 +03:00
required TResult Function(
bool password, KeyType? keyType, CertInfo? certInfo)
2023-04-27 10:13:38 +03:00
result,
required TResult Function() invalidPassword,
}) {
2023-08-23 16:53:30 +03:00
return result(password, keyType, certInfo);
2023-04-27 10:13:38 +03:00
}
@override
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
2023-08-23 16:53:30 +03:00
TResult? Function(bool password, KeyType? keyType, CertInfo? certInfo)?
result,
2023-04-27 10:13:38 +03:00
TResult? Function()? invalidPassword,
}) {
2023-08-23 16:53:30 +03:00
return result?.call(password, keyType, certInfo);
2023-04-27 10:13:38 +03:00
}
@override
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
2023-08-23 16:53:30 +03:00
TResult Function(bool password, KeyType? keyType, CertInfo? certInfo)?
result,
2023-04-27 10:13:38 +03:00
TResult Function()? invalidPassword,
required TResult orElse(),
}) {
if (result != null) {
2023-08-23 16:53:30 +03:00
return result(password, keyType, certInfo);
2023-04-27 10:13:38 +03:00
}
return orElse();
}
@override
@optionalTypeArgs
TResult map<TResult extends Object?>({
required TResult Function(_ExamineResult value) result,
required TResult Function(_InvalidPassword value) invalidPassword,
}) {
return result(this);
}
@override
@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
TResult? Function(_ExamineResult value)? result,
TResult? Function(_InvalidPassword value)? invalidPassword,
}) {
return result?.call(this);
}
@override
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
TResult Function(_ExamineResult value)? result,
TResult Function(_InvalidPassword value)? invalidPassword,
required TResult orElse(),
}) {
if (result != null) {
return result(this);
}
return orElse();
}
@override
Map<String, dynamic> toJson() {
2023-11-15 10:56:52 +03:00
return _$$ExamineResultImplToJson(
2023-04-27 10:13:38 +03:00
this,
);
}
}
abstract class _ExamineResult implements PivExamineResult {
factory _ExamineResult(
{required final bool password,
2023-08-23 16:53:30 +03:00
required final KeyType? keyType,
2023-11-15 10:56:52 +03:00
required final CertInfo? certInfo}) = _$ExamineResultImpl;
2023-04-27 10:13:38 +03:00
factory _ExamineResult.fromJson(Map<String, dynamic> json) =
2023-11-15 10:56:52 +03:00
_$ExamineResultImpl.fromJson;
2023-04-27 10:13:38 +03:00
bool get password;
2023-08-23 16:53:30 +03:00
KeyType? get keyType;
CertInfo? get certInfo;
2024-08-16 14:09:01 +03:00
/// Create a copy of PivExamineResult
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-11-15 10:56:52 +03:00
_$$ExamineResultImplCopyWith<_$ExamineResultImpl> get copyWith =>
2023-04-27 10:13:38 +03:00
throw _privateConstructorUsedError;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _$$InvalidPasswordImplCopyWith<$Res> {
factory _$$InvalidPasswordImplCopyWith(_$InvalidPasswordImpl value,
$Res Function(_$InvalidPasswordImpl) then) =
__$$InvalidPasswordImplCopyWithImpl<$Res>;
2023-04-27 10:13:38 +03:00
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$InvalidPasswordImplCopyWithImpl<$Res>
extends _$PivExamineResultCopyWithImpl<$Res, _$InvalidPasswordImpl>
implements _$$InvalidPasswordImplCopyWith<$Res> {
__$$InvalidPasswordImplCopyWithImpl(
_$InvalidPasswordImpl _value, $Res Function(_$InvalidPasswordImpl) _then)
2023-04-27 10:13:38 +03:00
: super(_value, _then);
2024-08-16 14:09:01 +03:00
/// Create a copy of PivExamineResult
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
}
/// @nodoc
@JsonSerializable()
2023-11-15 10:56:52 +03:00
class _$InvalidPasswordImpl implements _InvalidPassword {
_$InvalidPasswordImpl({final String? $type})
2023-04-27 10:13:38 +03:00
: $type = $type ?? 'invalidPassword';
2023-11-15 10:56:52 +03:00
factory _$InvalidPasswordImpl.fromJson(Map<String, dynamic> json) =>
_$$InvalidPasswordImplFromJson(json);
2023-04-27 10:13:38 +03:00
@JsonKey(name: 'runtimeType')
final String $type;
@override
String toString() {
return 'PivExamineResult.invalidPassword()';
}
@override
2024-01-24 11:36:33 +03:00
bool operator ==(Object other) {
2023-04-27 10:13:38 +03:00
return identical(this, other) ||
2023-11-15 10:56:52 +03:00
(other.runtimeType == runtimeType && other is _$InvalidPasswordImpl);
2023-04-27 10:13:38 +03:00
}
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
@override
int get hashCode => runtimeType.hashCode;
@override
@optionalTypeArgs
TResult when<TResult extends Object?>({
2023-08-23 16:53:30 +03:00
required TResult Function(
bool password, KeyType? keyType, CertInfo? certInfo)
2023-04-27 10:13:38 +03:00
result,
required TResult Function() invalidPassword,
}) {
return invalidPassword();
}
@override
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
2023-08-23 16:53:30 +03:00
TResult? Function(bool password, KeyType? keyType, CertInfo? certInfo)?
result,
2023-04-27 10:13:38 +03:00
TResult? Function()? invalidPassword,
}) {
return invalidPassword?.call();
}
@override
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
2023-08-23 16:53:30 +03:00
TResult Function(bool password, KeyType? keyType, CertInfo? certInfo)?
result,
2023-04-27 10:13:38 +03:00
TResult Function()? invalidPassword,
required TResult orElse(),
}) {
if (invalidPassword != null) {
return invalidPassword();
}
return orElse();
}
@override
@optionalTypeArgs
TResult map<TResult extends Object?>({
required TResult Function(_ExamineResult value) result,
required TResult Function(_InvalidPassword value) invalidPassword,
}) {
return invalidPassword(this);
}
@override
@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
TResult? Function(_ExamineResult value)? result,
TResult? Function(_InvalidPassword value)? invalidPassword,
}) {
return invalidPassword?.call(this);
}
@override
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
TResult Function(_ExamineResult value)? result,
TResult Function(_InvalidPassword value)? invalidPassword,
required TResult orElse(),
}) {
if (invalidPassword != null) {
return invalidPassword(this);
}
return orElse();
}
@override
Map<String, dynamic> toJson() {
2023-11-15 10:56:52 +03:00
return _$$InvalidPasswordImplToJson(
2023-04-27 10:13:38 +03:00
this,
);
}
}
abstract class _InvalidPassword implements PivExamineResult {
2023-11-15 10:56:52 +03:00
factory _InvalidPassword() = _$InvalidPasswordImpl;
2023-04-27 10:13:38 +03:00
factory _InvalidPassword.fromJson(Map<String, dynamic> json) =
2023-11-15 10:56:52 +03:00
_$InvalidPasswordImpl.fromJson;
2023-04-27 10:13:38 +03:00
}
/// @nodoc
mixin _$PivGenerateParameters {
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function() publicKey,
2023-04-27 10:13:38 +03:00
required TResult Function(
String subject, DateTime validFrom, DateTime validTo)
certificate,
required TResult Function(String subject) csr,
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
TResult? Function()? publicKey,
2023-04-27 10:13:38 +03:00
TResult? Function(String subject, DateTime validFrom, DateTime validTo)?
certificate,
TResult? Function(String subject)? csr,
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function()? publicKey,
2023-04-27 10:13:38 +03:00
TResult Function(String subject, DateTime validFrom, DateTime validTo)?
certificate,
TResult Function(String subject)? csr,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult map<TResult extends Object?>({
required TResult Function(_GeneratePublicKey value) publicKey,
2023-04-27 10:13:38 +03:00
required TResult Function(_GenerateCertificate value) certificate,
required TResult Function(_GenerateCsr value) csr,
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
TResult? Function(_GeneratePublicKey value)? publicKey,
2023-04-27 10:13:38 +03:00
TResult? Function(_GenerateCertificate value)? certificate,
TResult? Function(_GenerateCsr value)? csr,
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
TResult Function(_GeneratePublicKey value)? publicKey,
2023-04-27 10:13:38 +03:00
TResult Function(_GenerateCertificate value)? certificate,
TResult Function(_GenerateCsr value)? csr,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $PivGenerateParametersCopyWith<$Res> {
factory $PivGenerateParametersCopyWith(PivGenerateParameters value,
$Res Function(PivGenerateParameters) then) =
_$PivGenerateParametersCopyWithImpl<$Res, PivGenerateParameters>;
}
/// @nodoc
class _$PivGenerateParametersCopyWithImpl<$Res,
$Val extends PivGenerateParameters>
implements $PivGenerateParametersCopyWith<$Res> {
_$PivGenerateParametersCopyWithImpl(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 PivGenerateParameters
/// with the given fields replaced by the non-null parameter values.
}
/// @nodoc
abstract class _$$GeneratePublicKeyImplCopyWith<$Res> {
factory _$$GeneratePublicKeyImplCopyWith(_$GeneratePublicKeyImpl value,
$Res Function(_$GeneratePublicKeyImpl) then) =
__$$GeneratePublicKeyImplCopyWithImpl<$Res>;
}
/// @nodoc
class __$$GeneratePublicKeyImplCopyWithImpl<$Res>
extends _$PivGenerateParametersCopyWithImpl<$Res, _$GeneratePublicKeyImpl>
implements _$$GeneratePublicKeyImplCopyWith<$Res> {
__$$GeneratePublicKeyImplCopyWithImpl(_$GeneratePublicKeyImpl _value,
$Res Function(_$GeneratePublicKeyImpl) _then)
: super(_value, _then);
2024-08-16 14:09:01 +03:00
/// Create a copy of PivGenerateParameters
/// with the given fields replaced by the non-null parameter values.
}
/// @nodoc
class _$GeneratePublicKeyImpl implements _GeneratePublicKey {
_$GeneratePublicKeyImpl();
2023-04-27 10:13:38 +03:00
@override
String toString() {
return 'PivGenerateParameters.publicKey()';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType && other is _$GeneratePublicKeyImpl);
}
@override
int get hashCode => runtimeType.hashCode;
@override
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function() publicKey,
required TResult Function(
String subject, DateTime validFrom, DateTime validTo)
certificate,
required TResult Function(String subject) csr,
2023-04-27 10:13:38 +03:00
}) {
return publicKey();
}
@override
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
TResult? Function()? publicKey,
TResult? Function(String subject, DateTime validFrom, DateTime validTo)?
certificate,
TResult? Function(String subject)? csr,
}) {
return publicKey?.call();
2023-04-27 10:13:38 +03:00
}
@override
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function()? publicKey,
TResult Function(String subject, DateTime validFrom, DateTime validTo)?
certificate,
TResult Function(String subject)? csr,
required TResult orElse(),
}) {
if (publicKey != null) {
return publicKey();
}
return orElse();
}
@override
@optionalTypeArgs
TResult map<TResult extends Object?>({
required TResult Function(_GeneratePublicKey value) publicKey,
required TResult Function(_GenerateCertificate value) certificate,
required TResult Function(_GenerateCsr value) csr,
}) {
return publicKey(this);
}
@override
@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
TResult? Function(_GeneratePublicKey value)? publicKey,
TResult? Function(_GenerateCertificate value)? certificate,
TResult? Function(_GenerateCsr value)? csr,
}) {
return publicKey?.call(this);
}
@override
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
TResult Function(_GeneratePublicKey value)? publicKey,
TResult Function(_GenerateCertificate value)? certificate,
TResult Function(_GenerateCsr value)? csr,
required TResult orElse(),
}) {
if (publicKey != null) {
return publicKey(this);
}
return orElse();
}
}
abstract class _GeneratePublicKey implements PivGenerateParameters {
factory _GeneratePublicKey() = _$GeneratePublicKeyImpl;
2023-04-27 10:13:38 +03:00
}
/// @nodoc
abstract class _$$GenerateCertificateImplCopyWith<$Res> {
2023-11-15 10:56:52 +03:00
factory _$$GenerateCertificateImplCopyWith(_$GenerateCertificateImpl value,
$Res Function(_$GenerateCertificateImpl) then) =
__$$GenerateCertificateImplCopyWithImpl<$Res>;
2023-04-27 10:13:38 +03:00
@useResult
$Res call({String subject, DateTime validFrom, DateTime validTo});
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$GenerateCertificateImplCopyWithImpl<$Res>
extends _$PivGenerateParametersCopyWithImpl<$Res, _$GenerateCertificateImpl>
implements _$$GenerateCertificateImplCopyWith<$Res> {
__$$GenerateCertificateImplCopyWithImpl(_$GenerateCertificateImpl _value,
$Res Function(_$GenerateCertificateImpl) _then)
2023-04-27 10:13:38 +03:00
: super(_value, _then);
2024-08-16 14:09:01 +03:00
/// Create a copy of PivGenerateParameters
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
Object? subject = null,
Object? validFrom = null,
Object? validTo = null,
}) {
2023-11-15 10:56:52 +03:00
return _then(_$GenerateCertificateImpl(
2023-04-27 10:13:38 +03:00
subject: null == subject
? _value.subject
: subject // ignore: cast_nullable_to_non_nullable
as String,
validFrom: null == validFrom
? _value.validFrom
: validFrom // ignore: cast_nullable_to_non_nullable
as DateTime,
validTo: null == validTo
? _value.validTo
: validTo // ignore: cast_nullable_to_non_nullable
as DateTime,
));
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class _$GenerateCertificateImpl implements _GenerateCertificate {
_$GenerateCertificateImpl(
2023-04-27 10:13:38 +03:00
{required this.subject, required this.validFrom, required this.validTo});
@override
final String subject;
@override
final DateTime validFrom;
@override
final DateTime validTo;
@override
String toString() {
return 'PivGenerateParameters.certificate(subject: $subject, validFrom: $validFrom, validTo: $validTo)';
}
@override
2024-01-24 11:36:33 +03:00
bool operator ==(Object other) {
2023-04-27 10:13:38 +03:00
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-15 10:56:52 +03:00
other is _$GenerateCertificateImpl &&
2023-04-27 10:13:38 +03:00
(identical(other.subject, subject) || other.subject == subject) &&
(identical(other.validFrom, validFrom) ||
other.validFrom == validFrom) &&
(identical(other.validTo, validTo) || other.validTo == validTo));
}
@override
int get hashCode => Object.hash(runtimeType, subject, validFrom, validTo);
2024-08-16 14:09:01 +03:00
/// Create a copy of PivGenerateParameters
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
@override
@pragma('vm:prefer-inline')
2023-11-15 10:56:52 +03:00
_$$GenerateCertificateImplCopyWith<_$GenerateCertificateImpl> get copyWith =>
__$$GenerateCertificateImplCopyWithImpl<_$GenerateCertificateImpl>(
2023-04-27 10:13:38 +03:00
this, _$identity);
@override
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function() publicKey,
2023-04-27 10:13:38 +03:00
required TResult Function(
String subject, DateTime validFrom, DateTime validTo)
certificate,
required TResult Function(String subject) csr,
}) {
return certificate(subject, validFrom, validTo);
}
@override
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
TResult? Function()? publicKey,
2023-04-27 10:13:38 +03:00
TResult? Function(String subject, DateTime validFrom, DateTime validTo)?
certificate,
TResult? Function(String subject)? csr,
}) {
return certificate?.call(subject, validFrom, validTo);
}
@override
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function()? publicKey,
2023-04-27 10:13:38 +03:00
TResult Function(String subject, DateTime validFrom, DateTime validTo)?
certificate,
TResult Function(String subject)? csr,
required TResult orElse(),
}) {
if (certificate != null) {
return certificate(subject, validFrom, validTo);
}
return orElse();
}
@override
@optionalTypeArgs
TResult map<TResult extends Object?>({
required TResult Function(_GeneratePublicKey value) publicKey,
2023-04-27 10:13:38 +03:00
required TResult Function(_GenerateCertificate value) certificate,
required TResult Function(_GenerateCsr value) csr,
}) {
return certificate(this);
}
@override
@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
TResult? Function(_GeneratePublicKey value)? publicKey,
2023-04-27 10:13:38 +03:00
TResult? Function(_GenerateCertificate value)? certificate,
TResult? Function(_GenerateCsr value)? csr,
}) {
return certificate?.call(this);
}
@override
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
TResult Function(_GeneratePublicKey value)? publicKey,
2023-04-27 10:13:38 +03:00
TResult Function(_GenerateCertificate value)? certificate,
TResult Function(_GenerateCsr value)? csr,
required TResult orElse(),
}) {
if (certificate != null) {
return certificate(this);
}
return orElse();
}
}
abstract class _GenerateCertificate implements PivGenerateParameters {
factory _GenerateCertificate(
{required final String subject,
required final DateTime validFrom,
2023-11-15 10:56:52 +03:00
required final DateTime validTo}) = _$GenerateCertificateImpl;
2023-04-27 10:13:38 +03:00
String get subject;
DateTime get validFrom;
DateTime get validTo;
2024-08-16 14:09:01 +03:00
/// Create a copy of PivGenerateParameters
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-11-15 10:56:52 +03:00
_$$GenerateCertificateImplCopyWith<_$GenerateCertificateImpl> get copyWith =>
2023-04-27 10:13:38 +03:00
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class _$$GenerateCsrImplCopyWith<$Res> {
2023-11-15 10:56:52 +03:00
factory _$$GenerateCsrImplCopyWith(
_$GenerateCsrImpl value, $Res Function(_$GenerateCsrImpl) then) =
__$$GenerateCsrImplCopyWithImpl<$Res>;
2023-04-27 10:13:38 +03:00
@useResult
$Res call({String subject});
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$GenerateCsrImplCopyWithImpl<$Res>
extends _$PivGenerateParametersCopyWithImpl<$Res, _$GenerateCsrImpl>
implements _$$GenerateCsrImplCopyWith<$Res> {
__$$GenerateCsrImplCopyWithImpl(
_$GenerateCsrImpl _value, $Res Function(_$GenerateCsrImpl) _then)
2023-04-27 10:13:38 +03:00
: super(_value, _then);
2024-08-16 14:09:01 +03:00
/// Create a copy of PivGenerateParameters
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
Object? subject = null,
}) {
2023-11-15 10:56:52 +03:00
return _then(_$GenerateCsrImpl(
2023-04-27 10:13:38 +03:00
subject: null == subject
? _value.subject
: subject // ignore: cast_nullable_to_non_nullable
as String,
));
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class _$GenerateCsrImpl implements _GenerateCsr {
_$GenerateCsrImpl({required this.subject});
2023-04-27 10:13:38 +03:00
@override
final String subject;
@override
String toString() {
return 'PivGenerateParameters.csr(subject: $subject)';
}
@override
2024-01-24 11:36:33 +03:00
bool operator ==(Object other) {
2023-04-27 10:13:38 +03:00
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-15 10:56:52 +03:00
other is _$GenerateCsrImpl &&
2023-04-27 10:13:38 +03:00
(identical(other.subject, subject) || other.subject == subject));
}
@override
int get hashCode => Object.hash(runtimeType, subject);
2024-08-16 14:09:01 +03:00
/// Create a copy of PivGenerateParameters
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
@override
@pragma('vm:prefer-inline')
2023-11-15 10:56:52 +03:00
_$$GenerateCsrImplCopyWith<_$GenerateCsrImpl> get copyWith =>
__$$GenerateCsrImplCopyWithImpl<_$GenerateCsrImpl>(this, _$identity);
2023-04-27 10:13:38 +03:00
@override
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function() publicKey,
2023-04-27 10:13:38 +03:00
required TResult Function(
String subject, DateTime validFrom, DateTime validTo)
certificate,
required TResult Function(String subject) csr,
}) {
return csr(subject);
}
@override
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
TResult? Function()? publicKey,
2023-04-27 10:13:38 +03:00
TResult? Function(String subject, DateTime validFrom, DateTime validTo)?
certificate,
TResult? Function(String subject)? csr,
}) {
return csr?.call(subject);
}
@override
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function()? publicKey,
2023-04-27 10:13:38 +03:00
TResult Function(String subject, DateTime validFrom, DateTime validTo)?
certificate,
TResult Function(String subject)? csr,
required TResult orElse(),
}) {
if (csr != null) {
return csr(subject);
}
return orElse();
}
@override
@optionalTypeArgs
TResult map<TResult extends Object?>({
required TResult Function(_GeneratePublicKey value) publicKey,
2023-04-27 10:13:38 +03:00
required TResult Function(_GenerateCertificate value) certificate,
required TResult Function(_GenerateCsr value) csr,
}) {
return csr(this);
}
@override
@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
TResult? Function(_GeneratePublicKey value)? publicKey,
2023-04-27 10:13:38 +03:00
TResult? Function(_GenerateCertificate value)? certificate,
TResult? Function(_GenerateCsr value)? csr,
}) {
return csr?.call(this);
}
@override
@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
TResult Function(_GeneratePublicKey value)? publicKey,
2023-04-27 10:13:38 +03:00
TResult Function(_GenerateCertificate value)? certificate,
TResult Function(_GenerateCsr value)? csr,
required TResult orElse(),
}) {
if (csr != null) {
return csr(this);
}
return orElse();
}
}
abstract class _GenerateCsr implements PivGenerateParameters {
2023-11-15 10:56:52 +03:00
factory _GenerateCsr({required final String subject}) = _$GenerateCsrImpl;
2023-04-27 10:13:38 +03:00
String get subject;
2024-08-16 14:09:01 +03:00
/// Create a copy of PivGenerateParameters
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-11-15 10:56:52 +03:00
_$$GenerateCsrImplCopyWith<_$GenerateCsrImpl> get copyWith =>
2023-04-27 10:13:38 +03:00
throw _privateConstructorUsedError;
}
PivGenerateResult _$PivGenerateResultFromJson(Map<String, dynamic> json) {
return _PivGenerateResult.fromJson(json);
}
/// @nodoc
mixin _$PivGenerateResult {
GenerateType get generateType => throw _privateConstructorUsedError;
String get publicKey => throw _privateConstructorUsedError;
String? get result => throw _privateConstructorUsedError;
2023-04-27 10:13:38 +03:00
2024-08-16 14:09:01 +03:00
/// Serializes this PivGenerateResult to a JSON map.
2023-04-27 10:13:38 +03:00
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Create a copy of PivGenerateResult
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
$PivGenerateResultCopyWith<PivGenerateResult> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $PivGenerateResultCopyWith<$Res> {
factory $PivGenerateResultCopyWith(
PivGenerateResult value, $Res Function(PivGenerateResult) then) =
_$PivGenerateResultCopyWithImpl<$Res, PivGenerateResult>;
@useResult
$Res call({GenerateType generateType, String publicKey, String? result});
2023-04-27 10:13:38 +03:00
}
/// @nodoc
class _$PivGenerateResultCopyWithImpl<$Res, $Val extends PivGenerateResult>
implements $PivGenerateResultCopyWith<$Res> {
_$PivGenerateResultCopyWithImpl(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 PivGenerateResult
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
Object? generateType = null,
Object? publicKey = null,
Object? result = freezed,
2023-04-27 10:13:38 +03:00
}) {
return _then(_value.copyWith(
generateType: null == generateType
? _value.generateType
: generateType // ignore: cast_nullable_to_non_nullable
as GenerateType,
publicKey: null == publicKey
? _value.publicKey
: publicKey // ignore: cast_nullable_to_non_nullable
as String,
result: freezed == result
2023-04-27 10:13:38 +03:00
? _value.result
: result // ignore: cast_nullable_to_non_nullable
as String?,
2023-04-27 10:13:38 +03:00
) as $Val);
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _$$PivGenerateResultImplCopyWith<$Res>
2023-04-27 10:13:38 +03:00
implements $PivGenerateResultCopyWith<$Res> {
2023-11-15 10:56:52 +03:00
factory _$$PivGenerateResultImplCopyWith(_$PivGenerateResultImpl value,
$Res Function(_$PivGenerateResultImpl) then) =
__$$PivGenerateResultImplCopyWithImpl<$Res>;
2023-04-27 10:13:38 +03:00
@override
@useResult
$Res call({GenerateType generateType, String publicKey, String? result});
2023-04-27 10:13:38 +03:00
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$PivGenerateResultImplCopyWithImpl<$Res>
extends _$PivGenerateResultCopyWithImpl<$Res, _$PivGenerateResultImpl>
implements _$$PivGenerateResultImplCopyWith<$Res> {
__$$PivGenerateResultImplCopyWithImpl(_$PivGenerateResultImpl _value,
$Res Function(_$PivGenerateResultImpl) _then)
2023-04-27 10:13:38 +03:00
: super(_value, _then);
2024-08-16 14:09:01 +03:00
/// Create a copy of PivGenerateResult
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
Object? generateType = null,
Object? publicKey = null,
Object? result = freezed,
2023-04-27 10:13:38 +03:00
}) {
2023-11-15 10:56:52 +03:00
return _then(_$PivGenerateResultImpl(
2023-04-27 10:13:38 +03:00
generateType: null == generateType
? _value.generateType
: generateType // ignore: cast_nullable_to_non_nullable
as GenerateType,
publicKey: null == publicKey
? _value.publicKey
: publicKey // ignore: cast_nullable_to_non_nullable
as String,
result: freezed == result
2023-04-27 10:13:38 +03:00
? _value.result
: result // ignore: cast_nullable_to_non_nullable
as String?,
2023-04-27 10:13:38 +03:00
));
}
}
/// @nodoc
@JsonSerializable()
2023-11-15 10:56:52 +03:00
class _$PivGenerateResultImpl implements _PivGenerateResult {
_$PivGenerateResultImpl(
{required this.generateType, required this.publicKey, this.result});
2023-04-27 10:13:38 +03:00
2023-11-15 10:56:52 +03:00
factory _$PivGenerateResultImpl.fromJson(Map<String, dynamic> json) =>
_$$PivGenerateResultImplFromJson(json);
2023-04-27 10:13:38 +03:00
@override
final GenerateType generateType;
@override
final String publicKey;
@override
final String? result;
2023-04-27 10:13:38 +03:00
@override
String toString() {
return 'PivGenerateResult(generateType: $generateType, publicKey: $publicKey, result: $result)';
}
@override
2024-01-24 11:36:33 +03:00
bool operator ==(Object other) {
2023-04-27 10:13:38 +03:00
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-15 10:56:52 +03:00
other is _$PivGenerateResultImpl &&
2023-04-27 10:13:38 +03:00
(identical(other.generateType, generateType) ||
other.generateType == generateType) &&
(identical(other.publicKey, publicKey) ||
other.publicKey == publicKey) &&
(identical(other.result, result) || other.result == result));
}
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
@override
int get hashCode => Object.hash(runtimeType, generateType, publicKey, result);
2024-08-16 14:09:01 +03:00
/// Create a copy of PivGenerateResult
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
@override
@pragma('vm:prefer-inline')
2023-11-15 10:56:52 +03:00
_$$PivGenerateResultImplCopyWith<_$PivGenerateResultImpl> get copyWith =>
__$$PivGenerateResultImplCopyWithImpl<_$PivGenerateResultImpl>(
2023-04-27 10:13:38 +03:00
this, _$identity);
@override
Map<String, dynamic> toJson() {
2023-11-15 10:56:52 +03:00
return _$$PivGenerateResultImplToJson(
2023-04-27 10:13:38 +03:00
this,
);
}
}
abstract class _PivGenerateResult implements PivGenerateResult {
factory _PivGenerateResult(
{required final GenerateType generateType,
required final String publicKey,
final String? result}) = _$PivGenerateResultImpl;
2023-04-27 10:13:38 +03:00
factory _PivGenerateResult.fromJson(Map<String, dynamic> json) =
2023-11-15 10:56:52 +03:00
_$PivGenerateResultImpl.fromJson;
2023-04-27 10:13:38 +03:00
@override
GenerateType get generateType;
@override
String get publicKey;
@override
String? get result;
2024-08-16 14:09:01 +03:00
/// Create a copy of PivGenerateResult
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@override
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-11-15 10:56:52 +03:00
_$$PivGenerateResultImplCopyWith<_$PivGenerateResultImpl> get copyWith =>
2023-04-27 10:13:38 +03:00
throw _privateConstructorUsedError;
}
PivImportResult _$PivImportResultFromJson(Map<String, dynamic> json) {
return _PivImportResult.fromJson(json);
}
/// @nodoc
mixin _$PivImportResult {
SlotMetadata? get metadata => throw _privateConstructorUsedError;
String? get publicKey => throw _privateConstructorUsedError;
String? get certificate => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Serializes this PivImportResult to a JSON map.
2023-04-27 10:13:38 +03:00
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Create a copy of PivImportResult
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
$PivImportResultCopyWith<PivImportResult> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $PivImportResultCopyWith<$Res> {
factory $PivImportResultCopyWith(
PivImportResult value, $Res Function(PivImportResult) then) =
_$PivImportResultCopyWithImpl<$Res, PivImportResult>;
@useResult
$Res call({SlotMetadata? metadata, String? publicKey, String? certificate});
$SlotMetadataCopyWith<$Res>? get metadata;
}
/// @nodoc
class _$PivImportResultCopyWithImpl<$Res, $Val extends PivImportResult>
implements $PivImportResultCopyWith<$Res> {
_$PivImportResultCopyWithImpl(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 PivImportResult
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
Object? metadata = freezed,
Object? publicKey = freezed,
Object? certificate = freezed,
}) {
return _then(_value.copyWith(
metadata: freezed == metadata
? _value.metadata
: metadata // ignore: cast_nullable_to_non_nullable
as SlotMetadata?,
publicKey: freezed == publicKey
? _value.publicKey
: publicKey // ignore: cast_nullable_to_non_nullable
as String?,
certificate: freezed == certificate
? _value.certificate
: certificate // ignore: cast_nullable_to_non_nullable
as String?,
) as $Val);
}
2024-08-16 14:09:01 +03:00
/// Create a copy of PivImportResult
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@override
@pragma('vm:prefer-inline')
$SlotMetadataCopyWith<$Res>? get metadata {
if (_value.metadata == null) {
return null;
}
return $SlotMetadataCopyWith<$Res>(_value.metadata!, (value) {
return _then(_value.copyWith(metadata: value) as $Val);
});
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _$$PivImportResultImplCopyWith<$Res>
2023-04-27 10:13:38 +03:00
implements $PivImportResultCopyWith<$Res> {
2023-11-15 10:56:52 +03:00
factory _$$PivImportResultImplCopyWith(_$PivImportResultImpl value,
$Res Function(_$PivImportResultImpl) then) =
__$$PivImportResultImplCopyWithImpl<$Res>;
2023-04-27 10:13:38 +03:00
@override
@useResult
$Res call({SlotMetadata? metadata, String? publicKey, String? certificate});
@override
$SlotMetadataCopyWith<$Res>? get metadata;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$PivImportResultImplCopyWithImpl<$Res>
extends _$PivImportResultCopyWithImpl<$Res, _$PivImportResultImpl>
implements _$$PivImportResultImplCopyWith<$Res> {
__$$PivImportResultImplCopyWithImpl(
_$PivImportResultImpl _value, $Res Function(_$PivImportResultImpl) _then)
2023-04-27 10:13:38 +03:00
: super(_value, _then);
2024-08-16 14:09:01 +03:00
/// Create a copy of PivImportResult
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@pragma('vm:prefer-inline')
@override
$Res call({
Object? metadata = freezed,
Object? publicKey = freezed,
Object? certificate = freezed,
}) {
2023-11-15 10:56:52 +03:00
return _then(_$PivImportResultImpl(
2023-04-27 10:13:38 +03:00
metadata: freezed == metadata
? _value.metadata
: metadata // ignore: cast_nullable_to_non_nullable
as SlotMetadata?,
publicKey: freezed == publicKey
? _value.publicKey
: publicKey // ignore: cast_nullable_to_non_nullable
as String?,
certificate: freezed == certificate
? _value.certificate
: certificate // ignore: cast_nullable_to_non_nullable
as String?,
));
}
}
/// @nodoc
@JsonSerializable()
2023-11-15 10:56:52 +03:00
class _$PivImportResultImpl implements _PivImportResult {
_$PivImportResultImpl(
2023-04-27 10:13:38 +03:00
{required this.metadata,
required this.publicKey,
required this.certificate});
2023-11-15 10:56:52 +03:00
factory _$PivImportResultImpl.fromJson(Map<String, dynamic> json) =>
_$$PivImportResultImplFromJson(json);
2023-04-27 10:13:38 +03:00
@override
final SlotMetadata? metadata;
@override
final String? publicKey;
@override
final String? certificate;
@override
String toString() {
return 'PivImportResult(metadata: $metadata, publicKey: $publicKey, certificate: $certificate)';
}
@override
2024-01-24 11:36:33 +03:00
bool operator ==(Object other) {
2023-04-27 10:13:38 +03:00
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-15 10:56:52 +03:00
other is _$PivImportResultImpl &&
2023-04-27 10:13:38 +03:00
(identical(other.metadata, metadata) ||
other.metadata == metadata) &&
(identical(other.publicKey, publicKey) ||
other.publicKey == publicKey) &&
(identical(other.certificate, certificate) ||
other.certificate == certificate));
}
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
@override
int get hashCode =>
Object.hash(runtimeType, metadata, publicKey, certificate);
2024-08-16 14:09:01 +03:00
/// Create a copy of PivImportResult
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2023-04-27 10:13:38 +03:00
@override
@pragma('vm:prefer-inline')
2023-11-15 10:56:52 +03:00
_$$PivImportResultImplCopyWith<_$PivImportResultImpl> get copyWith =>
__$$PivImportResultImplCopyWithImpl<_$PivImportResultImpl>(
this, _$identity);
2023-04-27 10:13:38 +03:00
@override
Map<String, dynamic> toJson() {
2023-11-15 10:56:52 +03:00
return _$$PivImportResultImplToJson(
2023-04-27 10:13:38 +03:00
this,
);
}
}
abstract class _PivImportResult implements PivImportResult {
factory _PivImportResult(
{required final SlotMetadata? metadata,
required final String? publicKey,
2023-11-15 10:56:52 +03:00
required final String? certificate}) = _$PivImportResultImpl;
2023-04-27 10:13:38 +03:00
factory _PivImportResult.fromJson(Map<String, dynamic> json) =
2023-11-15 10:56:52 +03:00
_$PivImportResultImpl.fromJson;
2023-04-27 10:13:38 +03:00
@override
SlotMetadata? get metadata;
@override
String? get publicKey;
@override
String? get certificate;
2024-08-16 14:09:01 +03:00
/// Create a copy of PivImportResult
/// with the given fields replaced by the non-null parameter values.
2023-04-27 10:13:38 +03:00
@override
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-11-15 10:56:52 +03:00
_$$PivImportResultImplCopyWith<_$PivImportResultImpl> get copyWith =>
2023-04-27 10:13:38 +03:00
throw _privateConstructorUsedError;
}