|
// <auto-generated/>
#nullable enable annotations
#nullable disable warnings
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0612, CS0618
namespace Microsoft.AspNetCore.Identity
{
internal partial class IdentityJsonSerializerContext
{
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria>? _AuthenticatorSelectionCriteria;
/// <summary>
/// Defines the source generated JSON serialization contract metadata for a given type.
/// </summary>
#nullable disable annotations // Marking the property type as nullable-oblivious.
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria> AuthenticatorSelectionCriteria
#nullable enable annotations
{
get => _AuthenticatorSelectionCriteria ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria));
}
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria> Create_AuthenticatorSelectionCriteria(global::System.Text.Json.JsonSerializerOptions options)
{
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria> jsonTypeInfo))
{
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria>
{
ObjectCreator = () => new global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria(),
ObjectWithParameterizedConstructorCreator = null,
PropertyMetadataInitializer = _ => AuthenticatorSelectionCriteriaPropInit(options),
ConstructorParameterMetadataInitializer = null,
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
SerializeHandler = AuthenticatorSelectionCriteriaSerializeHandler,
};
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria>(options, objectInfo);
jsonTypeInfo.NumberHandling = null;
}
jsonTypeInfo.OriginatingResolver = this;
return jsonTypeInfo;
}
private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] AuthenticatorSelectionCriteriaPropInit(global::System.Text.Json.JsonSerializerOptions options)
{
var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[4];
var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria),
Converter = null,
Getter = static obj => ((global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria)obj).AuthenticatorAttachment,
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria)obj).AuthenticatorAttachment = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "AuthenticatorAttachment",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria).GetProperty("AuthenticatorAttachment", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
};
properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info0);
var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria),
Converter = null,
Getter = static obj => ((global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria)obj).ResidentKey,
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria)obj).ResidentKey = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "ResidentKey",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria).GetProperty("ResidentKey", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
};
properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info1);
var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<bool>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria),
Converter = null,
Getter = static obj => ((global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria)obj).RequireResidentKey,
Setter = null,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "RequireResidentKey",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria).GetProperty("RequireResidentKey", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
};
properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<bool>(options, info2);
var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria),
Converter = null,
Getter = static obj => ((global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria)obj).UserVerification,
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria)obj).UserVerification = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "UserVerification",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria).GetProperty("UserVerification", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
};
properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info3);
return properties;
}
// Intentionally not a static method because we create a delegate to it. Invoking delegates to instance
// methods is almost as fast as virtual calls. Static methods need to go through a shuffle thunk.
private void AuthenticatorSelectionCriteriaSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria? value)
{
if (value is null)
{
writer.WriteNullValue();
return;
}
writer.WriteStartObject();
string __value_AuthenticatorAttachment = ((global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria)value).AuthenticatorAttachment;
if (__value_AuthenticatorAttachment is not null)
{
writer.WriteString(PropName_authenticatorAttachment, __value_AuthenticatorAttachment);
}
string __value_ResidentKey = ((global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria)value).ResidentKey;
if (__value_ResidentKey is not null)
{
writer.WriteString(PropName_residentKey, __value_ResidentKey);
}
writer.WriteBoolean(PropName_requireResidentKey, ((global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria)value).RequireResidentKey);
string __value_UserVerification = ((global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria)value).UserVerification;
if (__value_UserVerification is not null)
{
writer.WriteString(PropName_userVerification, __value_UserVerification);
}
writer.WriteEndObject();
}
}
}
|