File: _generated\8\IdentityEndpointsJsonSerializerContext.PasskeyEndpointsResponse.g.cs
Web Access
Project: src\aspnetcore\src\Identity\Core\src\Microsoft.AspNetCore.Identity.csproj (Microsoft.AspNetCore.Identity)
// <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.Data
{
    internal sealed partial class IdentityEndpointsJsonSerializerContext
    {
        private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse>? _PasskeyEndpointsResponse;
        
        /// <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.Data.PasskeyEndpointsResponse> PasskeyEndpointsResponse
        #nullable enable annotations
        {
            get => _PasskeyEndpointsResponse ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse));
        }
        
        private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse> Create_PasskeyEndpointsResponse(global::System.Text.Json.JsonSerializerOptions options)
        {
            if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse> jsonTypeInfo))
            {
                var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse>
                {
                    ObjectCreator = () => new global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse(),
                    ObjectWithParameterizedConstructorCreator = null,
                    PropertyMetadataInitializer = _ => PasskeyEndpointsResponsePropInit(options),
                    ConstructorParameterMetadataInitializer = null,
                    ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
                    SerializeHandler = PasskeyEndpointsResponseSerializeHandler,
                    PolymorphismOptions = new global::System.Text.Json.Serialization.Metadata.JsonPolymorphismOptions(),
                    TypeClassifierFactory = null,
                };
                
                jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse>(options, objectInfo);
                jsonTypeInfo.NumberHandling = null;
            }
        
            jsonTypeInfo.OriginatingResolver = this;
            return jsonTypeInfo;
        }
 
        private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] PasskeyEndpointsResponsePropInit(global::System.Text.Json.JsonSerializerOptions options)
        {
            var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[3];
 
            var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse),
                Converter = null,
                Getter = static obj => ((global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse)obj).Enroll,
                Setter = static (obj, value) => __set_PasskeyEndpointsResponse_Enroll((global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse)obj, value!),
                IgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Enroll",
                JsonPropertyName = "enroll",
                AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse).GetProperty("Enroll", 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.Data.PasskeyEndpointsResponse),
                Converter = null,
                Getter = static obj => ((global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse)obj).Manage,
                Setter = static (obj, value) => __set_PasskeyEndpointsResponse_Manage((global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse)obj, value!),
                IgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Manage",
                JsonPropertyName = "manage",
                AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse).GetProperty("Manage", 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<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse),
                Converter = null,
                Getter = static obj => ((global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse)obj).PrfUsageDetails,
                Setter = static (obj, value) => __set_PasskeyEndpointsResponse_PrfUsageDetails((global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse)obj, value!),
                IgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "PrfUsageDetails",
                JsonPropertyName = "prfUsageDetails",
                AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse).GetProperty("PrfUsageDetails", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info2);
 
            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 PasskeyEndpointsResponseSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse? value)
        {
            if (value is null)
            {
                writer.WriteNullValue();
                return;
            }
            
            writer.WriteStartObject();
 
            string __value_Enroll = ((global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse)value).Enroll;
            if (__value_Enroll is not null)
            {
                writer.WriteString(PropName_enroll, __value_Enroll);
            }
            string __value_Manage = ((global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse)value).Manage;
            if (__value_Manage is not null)
            {
                writer.WriteString(PropName_manage, __value_Manage);
            }
            string __value_PrfUsageDetails = ((global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse)value).PrfUsageDetails;
            if (__value_PrfUsageDetails is not null)
            {
                writer.WriteString(PropName_prfUsageDetails, __value_PrfUsageDetails);
            }
 
            writer.WriteEndObject();
        }
 
        [global::System.Runtime.CompilerServices.UnsafeAccessorAttribute(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Method, Name = "set_Enroll")]
        private static extern void __set_PasskeyEndpointsResponse_Enroll(global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse obj, string value);
        [global::System.Runtime.CompilerServices.UnsafeAccessorAttribute(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Method, Name = "set_Manage")]
        private static extern void __set_PasskeyEndpointsResponse_Manage(global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse obj, string value);
        [global::System.Runtime.CompilerServices.UnsafeAccessorAttribute(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Method, Name = "set_PrfUsageDetails")]
        private static extern void __set_PasskeyEndpointsResponse_PrfUsageDetails(global::Microsoft.AspNetCore.Identity.Data.PasskeyEndpointsResponse obj, string value);
    }
}