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

1245 lines
37 KiB
Dart
Raw Normal View History

2021-11-19 17:05:57 +03:00
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
2022-05-12 12:06:28 +03:00
// ignore_for_file: type=lint
2022-12-05 17:26:54 +03:00
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
2021-11-19 17:05:57 +03:00
part of 'models.dart';
// **************************************************************************
// FreezedGenerator
// **************************************************************************
T _$identity<T>(T value) => value;
final _privateConstructorUsedError = UnsupportedError(
2024-02-05 17:15:38 +03:00
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
2021-11-19 17:05:57 +03:00
OathCredential _$OathCredentialFromJson(Map<String, dynamic> json) {
return _OathCredential.fromJson(json);
}
/// @nodoc
mixin _$OathCredential {
String get deviceId => throw _privateConstructorUsedError;
String get id => throw _privateConstructorUsedError;
2024-01-24 11:36:33 +03:00
@_IssuerConverter()
2021-11-19 17:05:57 +03:00
String? get issuer => throw _privateConstructorUsedError;
String get name => throw _privateConstructorUsedError;
OathType get oathType => throw _privateConstructorUsedError;
int get period => throw _privateConstructorUsedError;
bool get touchRequired => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Serializes this OathCredential to a JSON map.
2021-11-19 17:05:57 +03:00
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Create a copy of OathCredential
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2021-11-19 17:05:57 +03:00
$OathCredentialCopyWith<OathCredential> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $OathCredentialCopyWith<$Res> {
factory $OathCredentialCopyWith(
OathCredential value, $Res Function(OathCredential) then) =
2022-10-19 12:15:48 +03:00
_$OathCredentialCopyWithImpl<$Res, OathCredential>;
@useResult
2021-11-19 17:05:57 +03:00
$Res call(
{String deviceId,
String id,
2024-01-24 11:36:33 +03:00
@_IssuerConverter() String? issuer,
2021-11-19 17:05:57 +03:00
String name,
OathType oathType,
int period,
bool touchRequired});
}
/// @nodoc
2022-10-19 12:15:48 +03:00
class _$OathCredentialCopyWithImpl<$Res, $Val extends OathCredential>
2021-11-19 17:05:57 +03:00
implements $OathCredentialCopyWith<$Res> {
_$OathCredentialCopyWithImpl(this._value, this._then);
// ignore: unused_field
2022-10-19 12:15:48 +03:00
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
2021-11-19 17:05:57 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of OathCredential
/// with the given fields replaced by the non-null parameter values.
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2021-11-19 17:05:57 +03:00
@override
$Res call({
2022-10-19 12:15:48 +03:00
Object? deviceId = null,
Object? id = null,
2021-11-19 17:05:57 +03:00
Object? issuer = freezed,
2022-10-19 12:15:48 +03:00
Object? name = null,
Object? oathType = null,
Object? period = null,
Object? touchRequired = null,
2021-11-19 17:05:57 +03:00
}) {
return _then(_value.copyWith(
2022-10-19 12:15:48 +03:00
deviceId: null == deviceId
2021-11-19 17:05:57 +03:00
? _value.deviceId
: deviceId // ignore: cast_nullable_to_non_nullable
as String,
2022-10-19 12:15:48 +03:00
id: null == id
2021-11-19 17:05:57 +03:00
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as String,
2022-10-19 12:15:48 +03:00
issuer: freezed == issuer
2021-11-19 17:05:57 +03:00
? _value.issuer
: issuer // ignore: cast_nullable_to_non_nullable
as String?,
2022-10-19 12:15:48 +03:00
name: null == name
2021-11-19 17:05:57 +03:00
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String,
2022-10-19 12:15:48 +03:00
oathType: null == oathType
2021-11-19 17:05:57 +03:00
? _value.oathType
: oathType // ignore: cast_nullable_to_non_nullable
as OathType,
2022-10-19 12:15:48 +03:00
period: null == period
2021-11-19 17:05:57 +03:00
? _value.period
: period // ignore: cast_nullable_to_non_nullable
as int,
2022-10-19 12:15:48 +03:00
touchRequired: null == touchRequired
2021-11-19 17:05:57 +03:00
? _value.touchRequired
: touchRequired // ignore: cast_nullable_to_non_nullable
as bool,
2022-10-19 12:15:48 +03:00
) as $Val);
2021-11-19 17:05:57 +03:00
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _$$OathCredentialImplCopyWith<$Res>
2021-11-19 17:05:57 +03:00
implements $OathCredentialCopyWith<$Res> {
2023-11-15 10:56:52 +03:00
factory _$$OathCredentialImplCopyWith(_$OathCredentialImpl value,
$Res Function(_$OathCredentialImpl) then) =
__$$OathCredentialImplCopyWithImpl<$Res>;
2021-11-19 17:05:57 +03:00
@override
2022-10-19 12:15:48 +03:00
@useResult
2021-11-19 17:05:57 +03:00
$Res call(
{String deviceId,
String id,
2024-01-24 11:36:33 +03:00
@_IssuerConverter() String? issuer,
2021-11-19 17:05:57 +03:00
String name,
OathType oathType,
int period,
bool touchRequired});
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$OathCredentialImplCopyWithImpl<$Res>
extends _$OathCredentialCopyWithImpl<$Res, _$OathCredentialImpl>
implements _$$OathCredentialImplCopyWith<$Res> {
__$$OathCredentialImplCopyWithImpl(
_$OathCredentialImpl _value, $Res Function(_$OathCredentialImpl) _then)
2022-10-19 12:15:48 +03:00
: super(_value, _then);
2021-11-19 17:05:57 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of OathCredential
/// with the given fields replaced by the non-null parameter values.
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2021-11-19 17:05:57 +03:00
@override
$Res call({
2022-10-19 12:15:48 +03:00
Object? deviceId = null,
Object? id = null,
2021-11-19 17:05:57 +03:00
Object? issuer = freezed,
2022-10-19 12:15:48 +03:00
Object? name = null,
Object? oathType = null,
Object? period = null,
Object? touchRequired = null,
2021-11-19 17:05:57 +03:00
}) {
2023-11-15 10:56:52 +03:00
return _then(_$OathCredentialImpl(
2022-10-19 12:15:48 +03:00
null == deviceId
2021-11-19 17:05:57 +03:00
? _value.deviceId
: deviceId // ignore: cast_nullable_to_non_nullable
as String,
2022-10-19 12:15:48 +03:00
null == id
2021-11-19 17:05:57 +03:00
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as String,
2022-10-19 12:15:48 +03:00
freezed == issuer
2021-11-19 17:05:57 +03:00
? _value.issuer
: issuer // ignore: cast_nullable_to_non_nullable
as String?,
2022-10-19 12:15:48 +03:00
null == name
2021-11-19 17:05:57 +03:00
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String,
2022-10-19 12:15:48 +03:00
null == oathType
2021-11-19 17:05:57 +03:00
? _value.oathType
: oathType // ignore: cast_nullable_to_non_nullable
as OathType,
2022-10-19 12:15:48 +03:00
null == period
2021-11-19 17:05:57 +03:00
? _value.period
: period // ignore: cast_nullable_to_non_nullable
as int,
2022-10-19 12:15:48 +03:00
null == touchRequired
2021-11-19 17:05:57 +03:00
? _value.touchRequired
: touchRequired // ignore: cast_nullable_to_non_nullable
as bool,
));
}
}
/// @nodoc
@JsonSerializable()
2023-11-15 10:56:52 +03:00
class _$OathCredentialImpl implements _OathCredential {
2024-01-24 11:36:33 +03:00
_$OathCredentialImpl(this.deviceId, this.id, @_IssuerConverter() this.issuer,
this.name, this.oathType, this.period, this.touchRequired);
2021-11-19 17:05:57 +03:00
2023-11-15 10:56:52 +03:00
factory _$OathCredentialImpl.fromJson(Map<String, dynamic> json) =>
_$$OathCredentialImplFromJson(json);
2021-11-19 17:05:57 +03:00
@override
final String deviceId;
@override
final String id;
@override
2024-01-24 11:36:33 +03:00
@_IssuerConverter()
2021-11-19 17:05:57 +03:00
final String? issuer;
@override
final String name;
@override
final OathType oathType;
@override
final int period;
@override
final bool touchRequired;
@override
String toString() {
return 'OathCredential(deviceId: $deviceId, id: $id, issuer: $issuer, name: $name, oathType: $oathType, period: $period, touchRequired: $touchRequired)';
}
@override
2024-01-24 11:36:33 +03:00
bool operator ==(Object other) {
2021-11-19 17:05:57 +03:00
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-15 10:56:52 +03:00
other is _$OathCredentialImpl &&
2022-10-19 12:15:48 +03:00
(identical(other.deviceId, deviceId) ||
other.deviceId == deviceId) &&
(identical(other.id, id) || other.id == id) &&
(identical(other.issuer, issuer) || other.issuer == issuer) &&
(identical(other.name, name) || other.name == name) &&
(identical(other.oathType, oathType) ||
other.oathType == oathType) &&
(identical(other.period, period) || other.period == period) &&
(identical(other.touchRequired, touchRequired) ||
other.touchRequired == touchRequired));
2021-11-19 17:05:57 +03:00
}
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2021-11-19 17:05:57 +03:00
@override
int get hashCode => Object.hash(
2022-10-19 12:15:48 +03:00
runtimeType, deviceId, id, issuer, name, oathType, period, touchRequired);
2021-11-19 17:05:57 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of OathCredential
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2021-11-19 17:05:57 +03:00
@override
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2023-11-15 10:56:52 +03:00
_$$OathCredentialImplCopyWith<_$OathCredentialImpl> get copyWith =>
__$$OathCredentialImplCopyWithImpl<_$OathCredentialImpl>(
this, _$identity);
2021-11-19 17:05:57 +03:00
@override
Map<String, dynamic> toJson() {
2023-11-15 10:56:52 +03:00
return _$$OathCredentialImplToJson(
2022-07-21 17:38:45 +03:00
this,
);
2021-11-19 17:05:57 +03:00
}
}
abstract class _OathCredential implements OathCredential {
factory _OathCredential(
2022-05-12 12:06:28 +03:00
final String deviceId,
final String id,
2024-01-24 11:36:33 +03:00
@_IssuerConverter() final String? issuer,
2022-05-12 12:06:28 +03:00
final String name,
final OathType oathType,
final int period,
2023-11-15 10:56:52 +03:00
final bool touchRequired) = _$OathCredentialImpl;
2021-11-19 17:05:57 +03:00
factory _OathCredential.fromJson(Map<String, dynamic> json) =
2023-11-15 10:56:52 +03:00
_$OathCredentialImpl.fromJson;
2021-11-19 17:05:57 +03:00
@override
2022-07-07 11:29:42 +03:00
String get deviceId;
2021-11-19 17:05:57 +03:00
@override
2022-07-07 11:29:42 +03:00
String get id;
2021-11-19 17:05:57 +03:00
@override
2024-01-24 11:36:33 +03:00
@_IssuerConverter()
2022-07-07 11:29:42 +03:00
String? get issuer;
2021-11-19 17:05:57 +03:00
@override
2022-07-07 11:29:42 +03:00
String get name;
2021-11-19 17:05:57 +03:00
@override
2022-07-07 11:29:42 +03:00
OathType get oathType;
2021-11-19 17:05:57 +03:00
@override
2022-07-07 11:29:42 +03:00
int get period;
2021-11-19 17:05:57 +03:00
@override
2022-07-07 11:29:42 +03:00
bool get touchRequired;
2024-08-16 14:09:01 +03:00
/// Create a copy of OathCredential
/// with the given fields replaced by the non-null parameter values.
2021-11-19 17:05:57 +03:00
@override
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-11-15 10:56:52 +03:00
_$$OathCredentialImplCopyWith<_$OathCredentialImpl> get copyWith =>
2021-11-19 17:05:57 +03:00
throw _privateConstructorUsedError;
}
OathCode _$OathCodeFromJson(Map<String, dynamic> json) {
return _OathCode.fromJson(json);
}
/// @nodoc
mixin _$OathCode {
String get value => throw _privateConstructorUsedError;
int get validFrom => throw _privateConstructorUsedError;
int get validTo => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Serializes this OathCode to a JSON map.
2021-11-19 17:05:57 +03:00
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Create a copy of OathCode
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2021-11-19 17:05:57 +03:00
$OathCodeCopyWith<OathCode> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $OathCodeCopyWith<$Res> {
factory $OathCodeCopyWith(OathCode value, $Res Function(OathCode) then) =
2022-10-19 12:15:48 +03:00
_$OathCodeCopyWithImpl<$Res, OathCode>;
@useResult
2021-11-19 17:05:57 +03:00
$Res call({String value, int validFrom, int validTo});
}
/// @nodoc
2022-10-19 12:15:48 +03:00
class _$OathCodeCopyWithImpl<$Res, $Val extends OathCode>
implements $OathCodeCopyWith<$Res> {
2021-11-19 17:05:57 +03:00
_$OathCodeCopyWithImpl(this._value, this._then);
// ignore: unused_field
2022-10-19 12:15:48 +03:00
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
2021-11-19 17:05:57 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of OathCode
/// with the given fields replaced by the non-null parameter values.
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2021-11-19 17:05:57 +03:00
@override
$Res call({
2022-10-19 12:15:48 +03:00
Object? value = null,
Object? validFrom = null,
Object? validTo = null,
2021-11-19 17:05:57 +03:00
}) {
return _then(_value.copyWith(
2022-10-19 12:15:48 +03:00
value: null == value
2021-11-19 17:05:57 +03:00
? _value.value
: value // ignore: cast_nullable_to_non_nullable
as String,
2022-10-19 12:15:48 +03:00
validFrom: null == validFrom
2021-11-19 17:05:57 +03:00
? _value.validFrom
: validFrom // ignore: cast_nullable_to_non_nullable
as int,
2022-10-19 12:15:48 +03:00
validTo: null == validTo
2021-11-19 17:05:57 +03:00
? _value.validTo
: validTo // ignore: cast_nullable_to_non_nullable
as int,
2022-10-19 12:15:48 +03:00
) as $Val);
2021-11-19 17:05:57 +03:00
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _$$OathCodeImplCopyWith<$Res>
implements $OathCodeCopyWith<$Res> {
factory _$$OathCodeImplCopyWith(
_$OathCodeImpl value, $Res Function(_$OathCodeImpl) then) =
__$$OathCodeImplCopyWithImpl<$Res>;
2021-11-19 17:05:57 +03:00
@override
2022-10-19 12:15:48 +03:00
@useResult
2021-11-19 17:05:57 +03:00
$Res call({String value, int validFrom, int validTo});
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$OathCodeImplCopyWithImpl<$Res>
extends _$OathCodeCopyWithImpl<$Res, _$OathCodeImpl>
implements _$$OathCodeImplCopyWith<$Res> {
__$$OathCodeImplCopyWithImpl(
_$OathCodeImpl _value, $Res Function(_$OathCodeImpl) _then)
2022-10-19 12:15:48 +03:00
: super(_value, _then);
2021-11-19 17:05:57 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of OathCode
/// with the given fields replaced by the non-null parameter values.
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2021-11-19 17:05:57 +03:00
@override
$Res call({
2022-10-19 12:15:48 +03:00
Object? value = null,
Object? validFrom = null,
Object? validTo = null,
2021-11-19 17:05:57 +03:00
}) {
2023-11-15 10:56:52 +03:00
return _then(_$OathCodeImpl(
2022-10-19 12:15:48 +03:00
null == value
2021-11-19 17:05:57 +03:00
? _value.value
: value // ignore: cast_nullable_to_non_nullable
as String,
2022-10-19 12:15:48 +03:00
null == validFrom
2021-11-19 17:05:57 +03:00
? _value.validFrom
: validFrom // ignore: cast_nullable_to_non_nullable
as int,
2022-10-19 12:15:48 +03:00
null == validTo
2021-11-19 17:05:57 +03:00
? _value.validTo
: validTo // ignore: cast_nullable_to_non_nullable
as int,
));
}
}
/// @nodoc
@JsonSerializable()
2023-11-15 10:56:52 +03:00
class _$OathCodeImpl implements _OathCode {
_$OathCodeImpl(this.value, this.validFrom, this.validTo);
2021-11-19 17:05:57 +03:00
2023-11-15 10:56:52 +03:00
factory _$OathCodeImpl.fromJson(Map<String, dynamic> json) =>
_$$OathCodeImplFromJson(json);
2021-11-19 17:05:57 +03:00
@override
final String value;
@override
final int validFrom;
@override
final int validTo;
@override
String toString() {
return 'OathCode(value: $value, validFrom: $validFrom, validTo: $validTo)';
}
@override
2024-01-24 11:36:33 +03:00
bool operator ==(Object other) {
2021-11-19 17:05:57 +03:00
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-15 10:56:52 +03:00
other is _$OathCodeImpl &&
2022-10-19 12:15:48 +03:00
(identical(other.value, value) || other.value == value) &&
(identical(other.validFrom, validFrom) ||
other.validFrom == validFrom) &&
(identical(other.validTo, validTo) || other.validTo == validTo));
2021-11-19 17:05:57 +03:00
}
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2021-11-19 17:05:57 +03:00
@override
2022-10-19 12:15:48 +03:00
int get hashCode => Object.hash(runtimeType, value, validFrom, validTo);
2021-11-19 17:05:57 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of OathCode
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2021-11-19 17:05:57 +03:00
@override
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2023-11-15 10:56:52 +03:00
_$$OathCodeImplCopyWith<_$OathCodeImpl> get copyWith =>
__$$OathCodeImplCopyWithImpl<_$OathCodeImpl>(this, _$identity);
2021-11-19 17:05:57 +03:00
@override
Map<String, dynamic> toJson() {
2023-11-15 10:56:52 +03:00
return _$$OathCodeImplToJson(
2022-07-21 17:38:45 +03:00
this,
);
2021-11-19 17:05:57 +03:00
}
}
abstract class _OathCode implements OathCode {
2022-05-12 12:06:28 +03:00
factory _OathCode(
2023-11-15 10:56:52 +03:00
final String value, final int validFrom, final int validTo) =
_$OathCodeImpl;
2021-11-19 17:05:57 +03:00
2023-11-15 10:56:52 +03:00
factory _OathCode.fromJson(Map<String, dynamic> json) =
_$OathCodeImpl.fromJson;
2021-11-19 17:05:57 +03:00
@override
2022-07-07 11:29:42 +03:00
String get value;
2021-11-19 17:05:57 +03:00
@override
2022-07-07 11:29:42 +03:00
int get validFrom;
2021-11-19 17:05:57 +03:00
@override
2022-07-07 11:29:42 +03:00
int get validTo;
2024-08-16 14:09:01 +03:00
/// Create a copy of OathCode
/// with the given fields replaced by the non-null parameter values.
2021-11-19 17:05:57 +03:00
@override
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-11-15 10:56:52 +03:00
_$$OathCodeImplCopyWith<_$OathCodeImpl> get copyWith =>
2021-11-19 17:05:57 +03:00
throw _privateConstructorUsedError;
}
2022-05-06 15:27:33 +03:00
OathPair _$OathPairFromJson(Map<String, dynamic> json) {
return _OathPair.fromJson(json);
}
2021-11-19 17:05:57 +03:00
/// @nodoc
mixin _$OathPair {
OathCredential get credential => throw _privateConstructorUsedError;
OathCode? get code => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Serializes this OathPair to a JSON map.
2022-05-06 15:27:33 +03:00
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Create a copy of OathPair
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2021-11-19 17:05:57 +03:00
$OathPairCopyWith<OathPair> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $OathPairCopyWith<$Res> {
factory $OathPairCopyWith(OathPair value, $Res Function(OathPair) then) =
2022-10-19 12:15:48 +03:00
_$OathPairCopyWithImpl<$Res, OathPair>;
@useResult
2021-11-19 17:05:57 +03:00
$Res call({OathCredential credential, OathCode? code});
$OathCredentialCopyWith<$Res> get credential;
$OathCodeCopyWith<$Res>? get code;
}
/// @nodoc
2022-10-19 12:15:48 +03:00
class _$OathPairCopyWithImpl<$Res, $Val extends OathPair>
implements $OathPairCopyWith<$Res> {
2021-11-19 17:05:57 +03:00
_$OathPairCopyWithImpl(this._value, this._then);
// ignore: unused_field
2022-10-19 12:15:48 +03:00
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
2021-11-19 17:05:57 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of OathPair
/// with the given fields replaced by the non-null parameter values.
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2021-11-19 17:05:57 +03:00
@override
$Res call({
2022-10-19 12:15:48 +03:00
Object? credential = null,
2021-11-19 17:05:57 +03:00
Object? code = freezed,
}) {
return _then(_value.copyWith(
2022-10-19 12:15:48 +03:00
credential: null == credential
2021-11-19 17:05:57 +03:00
? _value.credential
: credential // ignore: cast_nullable_to_non_nullable
as OathCredential,
2022-10-19 12:15:48 +03:00
code: freezed == code
2021-11-19 17:05:57 +03:00
? _value.code
: code // ignore: cast_nullable_to_non_nullable
as OathCode?,
2022-10-19 12:15:48 +03:00
) as $Val);
2021-11-19 17:05:57 +03:00
}
2024-08-16 14:09:01 +03:00
/// Create a copy of OathPair
/// with the given fields replaced by the non-null parameter values.
2021-11-19 17:05:57 +03:00
@override
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2021-11-19 17:05:57 +03:00
$OathCredentialCopyWith<$Res> get credential {
return $OathCredentialCopyWith<$Res>(_value.credential, (value) {
2022-10-19 12:15:48 +03:00
return _then(_value.copyWith(credential: value) as $Val);
2021-11-19 17:05:57 +03:00
});
}
2024-08-16 14:09:01 +03:00
/// Create a copy of OathPair
/// with the given fields replaced by the non-null parameter values.
2021-11-19 17:05:57 +03:00
@override
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2021-11-19 17:05:57 +03:00
$OathCodeCopyWith<$Res>? get code {
if (_value.code == null) {
return null;
}
return $OathCodeCopyWith<$Res>(_value.code!, (value) {
2022-10-19 12:15:48 +03:00
return _then(_value.copyWith(code: value) as $Val);
2021-11-19 17:05:57 +03:00
});
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _$$OathPairImplCopyWith<$Res>
implements $OathPairCopyWith<$Res> {
factory _$$OathPairImplCopyWith(
_$OathPairImpl value, $Res Function(_$OathPairImpl) then) =
__$$OathPairImplCopyWithImpl<$Res>;
2021-11-19 17:05:57 +03:00
@override
2022-10-19 12:15:48 +03:00
@useResult
2021-11-19 17:05:57 +03:00
$Res call({OathCredential credential, OathCode? code});
@override
$OathCredentialCopyWith<$Res> get credential;
@override
$OathCodeCopyWith<$Res>? get code;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$OathPairImplCopyWithImpl<$Res>
extends _$OathPairCopyWithImpl<$Res, _$OathPairImpl>
implements _$$OathPairImplCopyWith<$Res> {
__$$OathPairImplCopyWithImpl(
_$OathPairImpl _value, $Res Function(_$OathPairImpl) _then)
2022-10-19 12:15:48 +03:00
: super(_value, _then);
2021-11-19 17:05:57 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of OathPair
/// with the given fields replaced by the non-null parameter values.
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2021-11-19 17:05:57 +03:00
@override
$Res call({
2022-10-19 12:15:48 +03:00
Object? credential = null,
2021-11-19 17:05:57 +03:00
Object? code = freezed,
}) {
2023-11-15 10:56:52 +03:00
return _then(_$OathPairImpl(
2022-10-19 12:15:48 +03:00
null == credential
2021-11-19 17:05:57 +03:00
? _value.credential
: credential // ignore: cast_nullable_to_non_nullable
as OathCredential,
2022-10-19 12:15:48 +03:00
freezed == code
2021-11-19 17:05:57 +03:00
? _value.code
: code // ignore: cast_nullable_to_non_nullable
as OathCode?,
));
}
}
/// @nodoc
2022-05-06 15:27:33 +03:00
@JsonSerializable()
2023-11-15 10:56:52 +03:00
class _$OathPairImpl implements _OathPair {
_$OathPairImpl(this.credential, this.code);
2021-11-19 17:05:57 +03:00
2023-11-15 10:56:52 +03:00
factory _$OathPairImpl.fromJson(Map<String, dynamic> json) =>
_$$OathPairImplFromJson(json);
2022-05-06 15:27:33 +03:00
2021-11-19 17:05:57 +03:00
@override
final OathCredential credential;
@override
final OathCode? code;
@override
String toString() {
return 'OathPair(credential: $credential, code: $code)';
}
@override
2024-01-24 11:36:33 +03:00
bool operator ==(Object other) {
2021-11-19 17:05:57 +03:00
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-15 10:56:52 +03:00
other is _$OathPairImpl &&
2022-10-19 12:15:48 +03:00
(identical(other.credential, credential) ||
other.credential == credential) &&
(identical(other.code, code) || other.code == code));
2021-11-19 17:05:57 +03:00
}
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2021-11-19 17:05:57 +03:00
@override
2022-10-19 12:15:48 +03:00
int get hashCode => Object.hash(runtimeType, credential, code);
2021-11-19 17:05:57 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of OathPair
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2021-11-19 17:05:57 +03:00
@override
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2023-11-15 10:56:52 +03:00
_$$OathPairImplCopyWith<_$OathPairImpl> get copyWith =>
__$$OathPairImplCopyWithImpl<_$OathPairImpl>(this, _$identity);
2022-05-06 15:27:33 +03:00
@override
Map<String, dynamic> toJson() {
2023-11-15 10:56:52 +03:00
return _$$OathPairImplToJson(
2022-07-21 17:38:45 +03:00
this,
);
2022-05-06 15:27:33 +03:00
}
2021-11-19 17:05:57 +03:00
}
abstract class _OathPair implements OathPair {
2022-05-12 12:06:28 +03:00
factory _OathPair(final OathCredential credential, final OathCode? code) =
2023-11-15 10:56:52 +03:00
_$OathPairImpl;
2021-11-19 17:05:57 +03:00
2023-11-15 10:56:52 +03:00
factory _OathPair.fromJson(Map<String, dynamic> json) =
_$OathPairImpl.fromJson;
2022-05-06 15:27:33 +03:00
2021-11-19 17:05:57 +03:00
@override
2022-07-07 11:29:42 +03:00
OathCredential get credential;
2021-11-19 17:05:57 +03:00
@override
2022-07-07 11:29:42 +03:00
OathCode? get code;
2024-08-16 14:09:01 +03:00
/// Create a copy of OathPair
/// with the given fields replaced by the non-null parameter values.
2021-11-19 17:05:57 +03:00
@override
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-11-15 10:56:52 +03:00
_$$OathPairImplCopyWith<_$OathPairImpl> get copyWith =>
2021-11-19 17:05:57 +03:00
throw _privateConstructorUsedError;
}
OathState _$OathStateFromJson(Map<String, dynamic> json) {
return _OathState.fromJson(json);
}
/// @nodoc
mixin _$OathState {
String get deviceId => throw _privateConstructorUsedError;
Version get version => throw _privateConstructorUsedError;
2021-11-19 17:05:57 +03:00
bool get hasKey => throw _privateConstructorUsedError;
2022-02-08 14:25:36 +03:00
bool get remembered => throw _privateConstructorUsedError;
2021-11-19 17:05:57 +03:00
bool get locked => throw _privateConstructorUsedError;
KeystoreState get keystore => throw _privateConstructorUsedError;
2021-11-19 17:05:57 +03:00
2024-08-16 14:09:01 +03:00
/// Serializes this OathState to a JSON map.
2021-11-19 17:05:57 +03:00
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Create a copy of OathState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2021-11-19 17:05:57 +03:00
$OathStateCopyWith<OathState> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $OathStateCopyWith<$Res> {
factory $OathStateCopyWith(OathState value, $Res Function(OathState) then) =
2022-10-19 12:15:48 +03:00
_$OathStateCopyWithImpl<$Res, OathState>;
@useResult
$Res call(
{String deviceId,
Version version,
bool hasKey,
bool remembered,
bool locked,
KeystoreState keystore});
$VersionCopyWith<$Res> get version;
2021-11-19 17:05:57 +03:00
}
/// @nodoc
2022-10-19 12:15:48 +03:00
class _$OathStateCopyWithImpl<$Res, $Val extends OathState>
implements $OathStateCopyWith<$Res> {
2021-11-19 17:05:57 +03:00
_$OathStateCopyWithImpl(this._value, this._then);
// ignore: unused_field
2022-10-19 12:15:48 +03:00
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
2021-11-19 17:05:57 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of OathState
/// with the given fields replaced by the non-null parameter values.
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2021-11-19 17:05:57 +03:00
@override
$Res call({
2022-10-19 12:15:48 +03:00
Object? deviceId = null,
Object? version = null,
Object? hasKey = null,
Object? remembered = null,
Object? locked = null,
Object? keystore = null,
2021-11-19 17:05:57 +03:00
}) {
return _then(_value.copyWith(
2022-10-19 12:15:48 +03:00
deviceId: null == deviceId
2021-11-19 17:05:57 +03:00
? _value.deviceId
: deviceId // ignore: cast_nullable_to_non_nullable
as String,
2022-10-19 12:15:48 +03:00
version: null == version
? _value.version
: version // ignore: cast_nullable_to_non_nullable
as Version,
2022-10-19 12:15:48 +03:00
hasKey: null == hasKey
2021-11-19 17:05:57 +03:00
? _value.hasKey
: hasKey // ignore: cast_nullable_to_non_nullable
as bool,
2022-10-19 12:15:48 +03:00
remembered: null == remembered
2022-02-08 14:25:36 +03:00
? _value.remembered
: remembered // ignore: cast_nullable_to_non_nullable
as bool,
2022-10-19 12:15:48 +03:00
locked: null == locked
2021-11-19 17:05:57 +03:00
? _value.locked
: locked // ignore: cast_nullable_to_non_nullable
as bool,
2022-10-19 12:15:48 +03:00
keystore: null == keystore
? _value.keystore
: keystore // ignore: cast_nullable_to_non_nullable
as KeystoreState,
2022-10-19 12:15:48 +03:00
) as $Val);
2021-11-19 17:05:57 +03:00
}
2024-08-16 14:09:01 +03:00
/// Create a copy of OathState
/// with the given fields replaced by the non-null parameter values.
@override
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
$VersionCopyWith<$Res> get version {
return $VersionCopyWith<$Res>(_value.version, (value) {
2022-10-19 12:15:48 +03:00
return _then(_value.copyWith(version: value) as $Val);
});
}
2021-11-19 17:05:57 +03:00
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _$$OathStateImplCopyWith<$Res>
implements $OathStateCopyWith<$Res> {
factory _$$OathStateImplCopyWith(
_$OathStateImpl value, $Res Function(_$OathStateImpl) then) =
__$$OathStateImplCopyWithImpl<$Res>;
2021-11-19 17:05:57 +03:00
@override
2022-10-19 12:15:48 +03:00
@useResult
$Res call(
{String deviceId,
Version version,
bool hasKey,
bool remembered,
bool locked,
KeystoreState keystore});
@override
$VersionCopyWith<$Res> get version;
2021-11-19 17:05:57 +03:00
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$OathStateImplCopyWithImpl<$Res>
extends _$OathStateCopyWithImpl<$Res, _$OathStateImpl>
implements _$$OathStateImplCopyWith<$Res> {
__$$OathStateImplCopyWithImpl(
_$OathStateImpl _value, $Res Function(_$OathStateImpl) _then)
2022-10-19 12:15:48 +03:00
: super(_value, _then);
2021-11-19 17:05:57 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of OathState
/// with the given fields replaced by the non-null parameter values.
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2021-11-19 17:05:57 +03:00
@override
$Res call({
2022-10-19 12:15:48 +03:00
Object? deviceId = null,
Object? version = null,
Object? hasKey = null,
Object? remembered = null,
Object? locked = null,
Object? keystore = null,
2021-11-19 17:05:57 +03:00
}) {
2023-11-15 10:56:52 +03:00
return _then(_$OathStateImpl(
2022-10-19 12:15:48 +03:00
null == deviceId
2021-11-19 17:05:57 +03:00
? _value.deviceId
: deviceId // ignore: cast_nullable_to_non_nullable
as String,
2022-10-19 12:15:48 +03:00
null == version
? _value.version
: version // ignore: cast_nullable_to_non_nullable
as Version,
2022-10-19 12:15:48 +03:00
hasKey: null == hasKey
2021-11-19 17:05:57 +03:00
? _value.hasKey
: hasKey // ignore: cast_nullable_to_non_nullable
as bool,
2022-10-19 12:15:48 +03:00
remembered: null == remembered
2022-02-08 14:25:36 +03:00
? _value.remembered
: remembered // ignore: cast_nullable_to_non_nullable
as bool,
2022-10-19 12:15:48 +03:00
locked: null == locked
2021-11-19 17:05:57 +03:00
? _value.locked
: locked // ignore: cast_nullable_to_non_nullable
as bool,
2022-10-19 12:15:48 +03:00
keystore: null == keystore
? _value.keystore
: keystore // ignore: cast_nullable_to_non_nullable
as KeystoreState,
2021-11-19 17:05:57 +03:00
));
}
}
/// @nodoc
@JsonSerializable()
2024-02-02 15:52:22 +03:00
class _$OathStateImpl extends _OathState {
2023-11-15 10:56:52 +03:00
_$OathStateImpl(this.deviceId, this.version,
{required this.hasKey,
required this.remembered,
required this.locked,
2024-02-02 15:52:22 +03:00
required this.keystore})
: super._();
2021-11-19 17:05:57 +03:00
2023-11-15 10:56:52 +03:00
factory _$OathStateImpl.fromJson(Map<String, dynamic> json) =>
_$$OathStateImplFromJson(json);
2021-11-19 17:05:57 +03:00
@override
final String deviceId;
@override
final Version version;
@override
2021-11-19 17:05:57 +03:00
final bool hasKey;
@override
2022-02-08 14:25:36 +03:00
final bool remembered;
@override
2021-11-19 17:05:57 +03:00
final bool locked;
@override
final KeystoreState keystore;
2021-11-19 17:05:57 +03:00
@override
String toString() {
return 'OathState(deviceId: $deviceId, version: $version, hasKey: $hasKey, remembered: $remembered, locked: $locked, keystore: $keystore)';
2021-11-19 17:05:57 +03:00
}
@override
2024-01-24 11:36:33 +03:00
bool operator ==(Object other) {
2021-11-19 17:05:57 +03:00
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-15 10:56:52 +03:00
other is _$OathStateImpl &&
2022-10-19 12:15:48 +03:00
(identical(other.deviceId, deviceId) ||
other.deviceId == deviceId) &&
(identical(other.version, version) || other.version == version) &&
(identical(other.hasKey, hasKey) || other.hasKey == hasKey) &&
(identical(other.remembered, remembered) ||
other.remembered == remembered) &&
(identical(other.locked, locked) || other.locked == locked) &&
(identical(other.keystore, keystore) ||
other.keystore == keystore));
2021-11-19 17:05:57 +03:00
}
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2021-11-19 17:05:57 +03:00
@override
2022-01-12 14:49:04 +03:00
int get hashCode => Object.hash(
2022-10-19 12:15:48 +03:00
runtimeType, deviceId, version, hasKey, remembered, locked, keystore);
2021-11-19 17:05:57 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of OathState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2021-11-19 17:05:57 +03:00
@override
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2023-11-15 10:56:52 +03:00
_$$OathStateImplCopyWith<_$OathStateImpl> get copyWith =>
__$$OathStateImplCopyWithImpl<_$OathStateImpl>(this, _$identity);
2021-11-19 17:05:57 +03:00
@override
Map<String, dynamic> toJson() {
2023-11-15 10:56:52 +03:00
return _$$OathStateImplToJson(
2022-07-21 17:38:45 +03:00
this,
);
2021-11-19 17:05:57 +03:00
}
}
2024-02-02 15:52:22 +03:00
abstract class _OathState extends OathState {
factory _OathState(final String deviceId, final Version version,
2022-05-12 12:06:28 +03:00
{required final bool hasKey,
required final bool remembered,
required final bool locked,
2023-11-15 10:56:52 +03:00
required final KeystoreState keystore}) = _$OathStateImpl;
2024-02-02 15:52:22 +03:00
_OathState._() : super._();
2021-11-19 17:05:57 +03:00
factory _OathState.fromJson(Map<String, dynamic> json) =
2023-11-15 10:56:52 +03:00
_$OathStateImpl.fromJson;
2021-11-19 17:05:57 +03:00
@override
2022-07-07 11:29:42 +03:00
String get deviceId;
2021-11-19 17:05:57 +03:00
@override
2022-07-07 11:29:42 +03:00
Version get version;
@override
2022-07-07 11:29:42 +03:00
bool get hasKey;
2021-11-19 17:05:57 +03:00
@override
2022-07-07 11:29:42 +03:00
bool get remembered;
2022-02-08 14:25:36 +03:00
@override
2022-07-07 11:29:42 +03:00
bool get locked;
2021-11-19 17:05:57 +03:00
@override
2022-07-07 11:29:42 +03:00
KeystoreState get keystore;
2024-08-16 14:09:01 +03:00
/// Create a copy of OathState
/// with the given fields replaced by the non-null parameter values.
@override
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-11-15 10:56:52 +03:00
_$$OathStateImplCopyWith<_$OathStateImpl> get copyWith =>
2021-11-19 17:05:57 +03:00
throw _privateConstructorUsedError;
}
CredentialData _$CredentialDataFromJson(Map<String, dynamic> json) {
return _CredentialData.fromJson(json);
}
/// @nodoc
mixin _$CredentialData {
String? get issuer => throw _privateConstructorUsedError;
String get name => throw _privateConstructorUsedError;
String get secret => throw _privateConstructorUsedError;
OathType get oathType => throw _privateConstructorUsedError;
HashAlgorithm get hashAlgorithm => throw _privateConstructorUsedError;
int get digits => throw _privateConstructorUsedError;
int get period => throw _privateConstructorUsedError;
int get counter => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Serializes this CredentialData to a JSON map.
2021-11-19 17:05:57 +03:00
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
2024-08-16 14:09:01 +03:00
/// Create a copy of CredentialData
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2021-11-19 17:05:57 +03:00
$CredentialDataCopyWith<CredentialData> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $CredentialDataCopyWith<$Res> {
factory $CredentialDataCopyWith(
CredentialData value, $Res Function(CredentialData) then) =
2022-10-19 12:15:48 +03:00
_$CredentialDataCopyWithImpl<$Res, CredentialData>;
@useResult
2021-11-19 17:05:57 +03:00
$Res call(
{String? issuer,
String name,
String secret,
OathType oathType,
HashAlgorithm hashAlgorithm,
int digits,
int period,
int counter});
}
/// @nodoc
2022-10-19 12:15:48 +03:00
class _$CredentialDataCopyWithImpl<$Res, $Val extends CredentialData>
2021-11-19 17:05:57 +03:00
implements $CredentialDataCopyWith<$Res> {
_$CredentialDataCopyWithImpl(this._value, this._then);
// ignore: unused_field
2022-10-19 12:15:48 +03:00
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
2021-11-19 17:05:57 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of CredentialData
/// with the given fields replaced by the non-null parameter values.
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2021-11-19 17:05:57 +03:00
@override
$Res call({
Object? issuer = freezed,
2022-10-19 12:15:48 +03:00
Object? name = null,
Object? secret = null,
Object? oathType = null,
Object? hashAlgorithm = null,
Object? digits = null,
Object? period = null,
Object? counter = null,
2021-11-19 17:05:57 +03:00
}) {
return _then(_value.copyWith(
2022-10-19 12:15:48 +03:00
issuer: freezed == issuer
2021-11-19 17:05:57 +03:00
? _value.issuer
: issuer // ignore: cast_nullable_to_non_nullable
as String?,
2022-10-19 12:15:48 +03:00
name: null == name
2021-11-19 17:05:57 +03:00
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String,
2022-10-19 12:15:48 +03:00
secret: null == secret
2021-11-19 17:05:57 +03:00
? _value.secret
: secret // ignore: cast_nullable_to_non_nullable
as String,
2022-10-19 12:15:48 +03:00
oathType: null == oathType
2021-11-19 17:05:57 +03:00
? _value.oathType
: oathType // ignore: cast_nullable_to_non_nullable
as OathType,
2022-10-19 12:15:48 +03:00
hashAlgorithm: null == hashAlgorithm
2021-11-19 17:05:57 +03:00
? _value.hashAlgorithm
: hashAlgorithm // ignore: cast_nullable_to_non_nullable
as HashAlgorithm,
2022-10-19 12:15:48 +03:00
digits: null == digits
2021-11-19 17:05:57 +03:00
? _value.digits
: digits // ignore: cast_nullable_to_non_nullable
as int,
2022-10-19 12:15:48 +03:00
period: null == period
2021-11-19 17:05:57 +03:00
? _value.period
: period // ignore: cast_nullable_to_non_nullable
as int,
2022-10-19 12:15:48 +03:00
counter: null == counter
2021-11-19 17:05:57 +03:00
? _value.counter
: counter // ignore: cast_nullable_to_non_nullable
as int,
2022-10-19 12:15:48 +03:00
) as $Val);
2021-11-19 17:05:57 +03:00
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _$$CredentialDataImplCopyWith<$Res>
2021-11-19 17:05:57 +03:00
implements $CredentialDataCopyWith<$Res> {
2023-11-15 10:56:52 +03:00
factory _$$CredentialDataImplCopyWith(_$CredentialDataImpl value,
$Res Function(_$CredentialDataImpl) then) =
__$$CredentialDataImplCopyWithImpl<$Res>;
2021-11-19 17:05:57 +03:00
@override
2022-10-19 12:15:48 +03:00
@useResult
2021-11-19 17:05:57 +03:00
$Res call(
{String? issuer,
String name,
String secret,
OathType oathType,
HashAlgorithm hashAlgorithm,
int digits,
int period,
int counter});
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __$$CredentialDataImplCopyWithImpl<$Res>
extends _$CredentialDataCopyWithImpl<$Res, _$CredentialDataImpl>
implements _$$CredentialDataImplCopyWith<$Res> {
__$$CredentialDataImplCopyWithImpl(
_$CredentialDataImpl _value, $Res Function(_$CredentialDataImpl) _then)
2022-10-19 12:15:48 +03:00
: super(_value, _then);
2021-11-19 17:05:57 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of CredentialData
/// with the given fields replaced by the non-null parameter values.
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2021-11-19 17:05:57 +03:00
@override
$Res call({
Object? issuer = freezed,
2022-10-19 12:15:48 +03:00
Object? name = null,
Object? secret = null,
Object? oathType = null,
Object? hashAlgorithm = null,
Object? digits = null,
Object? period = null,
Object? counter = null,
2021-11-19 17:05:57 +03:00
}) {
2023-11-15 10:56:52 +03:00
return _then(_$CredentialDataImpl(
2022-10-19 12:15:48 +03:00
issuer: freezed == issuer
2021-11-19 17:05:57 +03:00
? _value.issuer
: issuer // ignore: cast_nullable_to_non_nullable
as String?,
2022-10-19 12:15:48 +03:00
name: null == name
2021-11-19 17:05:57 +03:00
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String,
2022-10-19 12:15:48 +03:00
secret: null == secret
2021-11-19 17:05:57 +03:00
? _value.secret
: secret // ignore: cast_nullable_to_non_nullable
as String,
2022-10-19 12:15:48 +03:00
oathType: null == oathType
2021-11-19 17:05:57 +03:00
? _value.oathType
: oathType // ignore: cast_nullable_to_non_nullable
as OathType,
2022-10-19 12:15:48 +03:00
hashAlgorithm: null == hashAlgorithm
2021-11-19 17:05:57 +03:00
? _value.hashAlgorithm
: hashAlgorithm // ignore: cast_nullable_to_non_nullable
as HashAlgorithm,
2022-10-19 12:15:48 +03:00
digits: null == digits
2021-11-19 17:05:57 +03:00
? _value.digits
: digits // ignore: cast_nullable_to_non_nullable
as int,
2022-10-19 12:15:48 +03:00
period: null == period
2021-11-19 17:05:57 +03:00
? _value.period
: period // ignore: cast_nullable_to_non_nullable
as int,
2022-10-19 12:15:48 +03:00
counter: null == counter
2021-11-19 17:05:57 +03:00
? _value.counter
: counter // ignore: cast_nullable_to_non_nullable
as int,
));
}
}
/// @nodoc
@JsonSerializable()
2023-11-15 10:56:52 +03:00
class _$CredentialDataImpl extends _CredentialData {
_$CredentialDataImpl(
2021-11-19 17:05:57 +03:00
{this.issuer,
required this.name,
required this.secret,
this.oathType = defaultOathType,
this.hashAlgorithm = defaultHashAlgorithm,
this.digits = defaultDigits,
this.period = defaultPeriod,
this.counter = defaultCounter})
2021-11-19 17:05:57 +03:00
: super._();
2023-11-15 10:56:52 +03:00
factory _$CredentialDataImpl.fromJson(Map<String, dynamic> json) =>
_$$CredentialDataImplFromJson(json);
2021-11-19 17:05:57 +03:00
@override
final String? issuer;
@override
final String name;
@override
final String secret;
@override
2022-01-12 14:49:04 +03:00
@JsonKey()
2022-05-12 12:06:28 +03:00
final OathType oathType;
2021-11-19 17:05:57 +03:00
@override
2022-01-12 14:49:04 +03:00
@JsonKey()
2022-05-12 12:06:28 +03:00
final HashAlgorithm hashAlgorithm;
2021-11-19 17:05:57 +03:00
@override
2022-01-12 14:49:04 +03:00
@JsonKey()
2022-05-12 12:06:28 +03:00
final int digits;
2021-11-19 17:05:57 +03:00
@override
2022-01-12 14:49:04 +03:00
@JsonKey()
2022-05-12 12:06:28 +03:00
final int period;
2021-11-19 17:05:57 +03:00
@override
2022-05-12 12:06:28 +03:00
@JsonKey()
2021-11-19 17:05:57 +03:00
final int counter;
@override
String toString() {
return 'CredentialData(issuer: $issuer, name: $name, secret: $secret, oathType: $oathType, hashAlgorithm: $hashAlgorithm, digits: $digits, period: $period, counter: $counter)';
}
@override
2024-01-24 11:36:33 +03:00
bool operator ==(Object other) {
2021-11-19 17:05:57 +03:00
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-15 10:56:52 +03:00
other is _$CredentialDataImpl &&
2022-10-19 12:15:48 +03:00
(identical(other.issuer, issuer) || other.issuer == issuer) &&
(identical(other.name, name) || other.name == name) &&
(identical(other.secret, secret) || other.secret == secret) &&
(identical(other.oathType, oathType) ||
other.oathType == oathType) &&
(identical(other.hashAlgorithm, hashAlgorithm) ||
other.hashAlgorithm == hashAlgorithm) &&
(identical(other.digits, digits) || other.digits == digits) &&
(identical(other.period, period) || other.period == period) &&
(identical(other.counter, counter) || other.counter == counter));
2021-11-19 17:05:57 +03:00
}
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2021-11-19 17:05:57 +03:00
@override
2022-10-19 12:15:48 +03:00
int get hashCode => Object.hash(runtimeType, issuer, name, secret, oathType,
hashAlgorithm, digits, period, counter);
2021-11-19 17:05:57 +03:00
2024-08-16 14:09:01 +03:00
/// Create a copy of CredentialData
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
2021-11-19 17:05:57 +03:00
@override
2022-10-19 12:15:48 +03:00
@pragma('vm:prefer-inline')
2023-11-15 10:56:52 +03:00
_$$CredentialDataImplCopyWith<_$CredentialDataImpl> get copyWith =>
__$$CredentialDataImplCopyWithImpl<_$CredentialDataImpl>(
this, _$identity);
2021-11-19 17:05:57 +03:00
@override
Map<String, dynamic> toJson() {
2023-11-15 10:56:52 +03:00
return _$$CredentialDataImplToJson(
2022-07-21 17:38:45 +03:00
this,
);
2021-11-19 17:05:57 +03:00
}
}
abstract class _CredentialData extends CredentialData {
factory _CredentialData(
2022-05-12 12:06:28 +03:00
{final String? issuer,
required final String name,
required final String secret,
final OathType oathType,
final HashAlgorithm hashAlgorithm,
final int digits,
final int period,
2023-11-15 10:56:52 +03:00
final int counter}) = _$CredentialDataImpl;
2021-11-19 17:05:57 +03:00
_CredentialData._() : super._();
factory _CredentialData.fromJson(Map<String, dynamic> json) =
2023-11-15 10:56:52 +03:00
_$CredentialDataImpl.fromJson;
2021-11-19 17:05:57 +03:00
@override
2022-07-07 11:29:42 +03:00
String? get issuer;
2021-11-19 17:05:57 +03:00
@override
2022-07-07 11:29:42 +03:00
String get name;
2021-11-19 17:05:57 +03:00
@override
2022-07-07 11:29:42 +03:00
String get secret;
2021-11-19 17:05:57 +03:00
@override
2022-07-07 11:29:42 +03:00
OathType get oathType;
2021-11-19 17:05:57 +03:00
@override
2022-07-07 11:29:42 +03:00
HashAlgorithm get hashAlgorithm;
2021-11-19 17:05:57 +03:00
@override
2022-07-07 11:29:42 +03:00
int get digits;
2021-11-19 17:05:57 +03:00
@override
2022-07-07 11:29:42 +03:00
int get period;
2021-11-19 17:05:57 +03:00
@override
2022-07-07 11:29:42 +03:00
int get counter;
2024-08-16 14:09:01 +03:00
/// Create a copy of CredentialData
/// with the given fields replaced by the non-null parameter values.
2021-11-19 17:05:57 +03:00
@override
2024-08-16 14:09:01 +03:00
@JsonKey(includeFromJson: false, includeToJson: false)
2023-11-15 10:56:52 +03:00
_$$CredentialDataImplCopyWith<_$CredentialDataImpl> get copyWith =>
2021-11-19 17:05:57 +03:00
throw _privateConstructorUsedError;
}