yubioath-flutter/lib/otp/models.g.dart

162 lines
4.7 KiB
Dart
Raw Normal View History

2023-11-09 16:09:59 +03:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'models.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
2023-12-13 21:35:17 +03:00
_$OtpStateImpl _$$OtpStateImplFromJson(Map<String, dynamic> json) =>
_$OtpStateImpl(
2023-11-09 16:09:59 +03:00
slot1Configured: json['slot1_configured'] as bool,
slot2Configured: json['slot2_configured'] as bool,
);
2023-12-13 21:35:17 +03:00
Map<String, dynamic> _$$OtpStateImplToJson(_$OtpStateImpl instance) =>
2023-11-09 16:09:59 +03:00
<String, dynamic>{
'slot1_configured': instance.slot1Configured,
'slot2_configured': instance.slot2Configured,
};
2023-12-13 21:35:17 +03:00
_$SlotConfigurationOptionsImpl _$$SlotConfigurationOptionsImplFromJson(
2023-11-09 16:09:59 +03:00
Map<String, dynamic> json) =>
2023-12-13 21:35:17 +03:00
_$SlotConfigurationOptionsImpl(
2023-11-09 16:09:59 +03:00
digits8: json['digits8'] as bool?,
requireTouch: json['require_touch'] as bool?,
appendCr: json['append_cr'] as bool?,
);
2023-12-13 21:35:17 +03:00
Map<String, dynamic> _$$SlotConfigurationOptionsImplToJson(
_$SlotConfigurationOptionsImpl instance) {
2023-11-09 16:09:59 +03:00
final val = <String, dynamic>{};
void writeNotNull(String key, dynamic value) {
if (value != null) {
val[key] = value;
}
}
writeNotNull('digits8', instance.digits8);
writeNotNull('require_touch', instance.requireTouch);
writeNotNull('append_cr', instance.appendCr);
return val;
}
2023-12-13 21:35:17 +03:00
_$SlotConfigurationHotpImpl _$$SlotConfigurationHotpImplFromJson(
2023-11-09 16:09:59 +03:00
Map<String, dynamic> json) =>
2023-12-13 21:35:17 +03:00
_$SlotConfigurationHotpImpl(
2023-11-09 16:09:59 +03:00
key: json['key'] as String,
options: json['options'] == null
? null
: SlotConfigurationOptions.fromJson(
json['options'] as Map<String, dynamic>),
$type: json['type'] as String?,
);
2023-12-13 21:35:17 +03:00
Map<String, dynamic> _$$SlotConfigurationHotpImplToJson(
_$SlotConfigurationHotpImpl instance) {
2023-11-09 16:09:59 +03:00
final val = <String, dynamic>{
'key': instance.key,
};
void writeNotNull(String key, dynamic value) {
if (value != null) {
val[key] = value;
}
}
writeNotNull('options', instance.options?.toJson());
val['type'] = instance.$type;
return val;
}
2023-12-13 21:35:17 +03:00
_$SlotConfigurationHmacSha1Impl _$$SlotConfigurationHmacSha1ImplFromJson(
2023-11-09 16:09:59 +03:00
Map<String, dynamic> json) =>
2023-12-13 21:35:17 +03:00
_$SlotConfigurationHmacSha1Impl(
2023-11-09 16:09:59 +03:00
key: json['key'] as String,
options: json['options'] == null
? null
: SlotConfigurationOptions.fromJson(
json['options'] as Map<String, dynamic>),
$type: json['type'] as String?,
);
2023-12-13 21:35:17 +03:00
Map<String, dynamic> _$$SlotConfigurationHmacSha1ImplToJson(
_$SlotConfigurationHmacSha1Impl instance) {
2023-11-09 16:09:59 +03:00
final val = <String, dynamic>{
'key': instance.key,
};
void writeNotNull(String key, dynamic value) {
if (value != null) {
val[key] = value;
}
}
writeNotNull('options', instance.options?.toJson());
val['type'] = instance.$type;
return val;
}
2023-12-13 21:35:17 +03:00
_$SlotConfigurationStaticPasswordImpl
_$$SlotConfigurationStaticPasswordImplFromJson(Map<String, dynamic> json) =>
_$SlotConfigurationStaticPasswordImpl(
password: json['password'] as String,
keyboardLayout: json['keyboard_layout'] as String,
options: json['options'] == null
? null
: SlotConfigurationOptions.fromJson(
json['options'] as Map<String, dynamic>),
$type: json['type'] as String?,
);
Map<String, dynamic> _$$SlotConfigurationStaticPasswordImplToJson(
_$SlotConfigurationStaticPasswordImpl instance) {
2023-11-09 16:09:59 +03:00
final val = <String, dynamic>{
'password': instance.password,
'keyboard_layout': instance.keyboardLayout,
};
void writeNotNull(String key, dynamic value) {
if (value != null) {
val[key] = value;
}
}
writeNotNull('options', instance.options?.toJson());
val['type'] = instance.$type;
return val;
}
2023-12-13 21:35:17 +03:00
_$SlotConfigurationYubiOtpImpl _$$SlotConfigurationYubiOtpImplFromJson(
2023-11-09 16:09:59 +03:00
Map<String, dynamic> json) =>
2023-12-13 21:35:17 +03:00
_$SlotConfigurationYubiOtpImpl(
2023-11-09 16:09:59 +03:00
publicId: json['public_id'] as String,
privateId: json['private_id'] as String,
key: json['key'] as String,
options: json['options'] == null
? null
: SlotConfigurationOptions.fromJson(
json['options'] as Map<String, dynamic>),
$type: json['type'] as String?,
);
2023-12-13 21:35:17 +03:00
Map<String, dynamic> _$$SlotConfigurationYubiOtpImplToJson(
_$SlotConfigurationYubiOtpImpl instance) {
2023-11-09 16:09:59 +03:00
final val = <String, dynamic>{
'public_id': instance.publicId,
'private_id': instance.privateId,
'key': instance.key,
};
void writeNotNull(String key, dynamic value) {
if (value != null) {
val[key] = value;
}
}
writeNotNull('options', instance.options?.toJson());
val['type'] = instance.$type;
return val;
}