// GENERATED CODE - DO NOT MODIFY BY HAND part of 'models.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** _$OtpStateImpl _$$OtpStateImplFromJson(Map json) => _$OtpStateImpl( slot1Configured: json['slot1_configured'] as bool, slot2Configured: json['slot2_configured'] as bool, ); Map _$$OtpStateImplToJson(_$OtpStateImpl instance) => { 'slot1_configured': instance.slot1Configured, 'slot2_configured': instance.slot2Configured, }; _$SlotConfigurationOptionsImpl _$$SlotConfigurationOptionsImplFromJson( Map json) => _$SlotConfigurationOptionsImpl( digits8: json['digits8'] as bool?, requireTouch: json['require_touch'] as bool?, appendCr: json['append_cr'] as bool?, ); Map _$$SlotConfigurationOptionsImplToJson( _$SlotConfigurationOptionsImpl instance) { final val = {}; 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; } _$SlotConfigurationHotpImpl _$$SlotConfigurationHotpImplFromJson( Map json) => _$SlotConfigurationHotpImpl( key: json['key'] as String, options: json['options'] == null ? null : SlotConfigurationOptions.fromJson( json['options'] as Map), $type: json['type'] as String?, ); Map _$$SlotConfigurationHotpImplToJson( _$SlotConfigurationHotpImpl instance) { final val = { '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; } _$SlotConfigurationHmacSha1Impl _$$SlotConfigurationHmacSha1ImplFromJson( Map json) => _$SlotConfigurationHmacSha1Impl( key: json['key'] as String, options: json['options'] == null ? null : SlotConfigurationOptions.fromJson( json['options'] as Map), $type: json['type'] as String?, ); Map _$$SlotConfigurationHmacSha1ImplToJson( _$SlotConfigurationHmacSha1Impl instance) { final val = { '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; } _$SlotConfigurationStaticPasswordImpl _$$SlotConfigurationStaticPasswordImplFromJson(Map json) => _$SlotConfigurationStaticPasswordImpl( password: json['password'] as String, keyboardLayout: json['keyboard_layout'] as String, options: json['options'] == null ? null : SlotConfigurationOptions.fromJson( json['options'] as Map), $type: json['type'] as String?, ); Map _$$SlotConfigurationStaticPasswordImplToJson( _$SlotConfigurationStaticPasswordImpl instance) { final val = { '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; } _$SlotConfigurationYubiOtpImpl _$$SlotConfigurationYubiOtpImplFromJson( Map json) => _$SlotConfigurationYubiOtpImpl( 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), $type: json['type'] as String?, ); Map _$$SlotConfigurationYubiOtpImplToJson( _$SlotConfigurationYubiOtpImpl instance) { final val = { '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; }