File: IdentityJsonSerializerContext.PublicKeyCredentialCreationOptions.g.cs
Project: src\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
{
    internal partial class IdentityJsonSerializerContext
    {
        private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions>? _PublicKeyCredentialCreationOptions;
        
        /// <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.PublicKeyCredentialCreationOptions> PublicKeyCredentialCreationOptions
        #nullable enable annotations
        {
            get => _PublicKeyCredentialCreationOptions ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions));
        }
        
        private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions> Create_PublicKeyCredentialCreationOptions(global::System.Text.Json.JsonSerializerOptions options)
        {
            if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions> jsonTypeInfo))
            {
                var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions>
                {
                    ObjectCreator = null,
                    ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions(){ Rp = (global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRpEntity)args[0], User = (global::Microsoft.AspNetCore.Identity.PublicKeyCredentialUserEntity)args[1], Challenge = (global::Microsoft.AspNetCore.Identity.BufferSource)args[2], PubKeyCredParams = (global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters>)args[3], Timeout = (ulong?)args[4], ExcludeCredentials = (global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor>)args[5], AuthenticatorSelection = (global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria)args[6], Hints = (global::System.Collections.Generic.IReadOnlyList<string>)args[7], Attestation = (string)args[8], AttestationFormats = (global::System.Collections.Generic.IReadOnlyList<string>)args[9], Extensions = (global::System.Text.Json.JsonElement?)args[10] },
                    PropertyMetadataInitializer = _ => PublicKeyCredentialCreationOptionsPropInit(options),
                    ConstructorParameterMetadataInitializer = PublicKeyCredentialCreationOptionsCtorParamInit,
                    ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
                    SerializeHandler = PublicKeyCredentialCreationOptionsSerializeHandler,
                };
                
                jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions>(options, objectInfo);
                jsonTypeInfo.NumberHandling = null;
            }
        
            jsonTypeInfo.OriginatingResolver = this;
            return jsonTypeInfo;
        }
 
        private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] PublicKeyCredentialCreationOptionsPropInit(global::System.Text.Json.JsonSerializerOptions options)
        {
            var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[11];
 
            var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRpEntity>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions),
                Converter = null,
                Getter = static obj => ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions)obj).Rp,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Rp",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("Rp", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRpEntity), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRpEntity>(options, info0);
            properties[0].IsRequired = true;
            properties[0].IsGetNullable = false;
            properties[0].IsSetNullable = false;
 
            var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialUserEntity>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions),
                Converter = null,
                Getter = static obj => ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions)obj).User,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "User",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("User", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialUserEntity), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialUserEntity>(options, info1);
            properties[1].IsRequired = true;
            properties[1].IsGetNullable = false;
            properties[1].IsSetNullable = false;
 
            var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Identity.BufferSource>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions),
                Converter = null,
                Getter = static obj => ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions)obj).Challenge,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Challenge",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("Challenge", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.BufferSource), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Identity.BufferSource>(options, info2);
            properties[2].IsRequired = true;
            properties[2].IsGetNullable = false;
            properties[2].IsSetNullable = false;
 
            var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters>>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions),
                Converter = null,
                Getter = static obj => ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions)obj).PubKeyCredParams,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "PubKeyCredParams",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("PubKeyCredParams", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters>), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters>>(options, info3);
            properties[3].IsGetNullable = false;
            properties[3].IsSetNullable = false;
 
            var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<ulong?>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions),
                Converter = null,
                Getter = static obj => ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions)obj).Timeout,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Timeout",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("Timeout", InstanceMemberBindingFlags, null, typeof(ulong?), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<ulong?>(options, info4);
 
            var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor>>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions),
                Converter = null,
                Getter = static obj => ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions)obj).ExcludeCredentials,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "ExcludeCredentials",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("ExcludeCredentials", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor>), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor>>(options, info5);
            properties[5].IsGetNullable = false;
            properties[5].IsSetNullable = false;
 
            var info6 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions),
                Converter = null,
                Getter = static obj => ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions)obj).AuthenticatorSelection,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "AuthenticatorSelection",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("AuthenticatorSelection", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[6] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria>(options, info6);
 
            var info7 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<string>>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions),
                Converter = null,
                Getter = static obj => ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions)obj).Hints,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Hints",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("Hints", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[7] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<string>>(options, info7);
            properties[7].IsGetNullable = false;
            properties[7].IsSetNullable = false;
 
            var info8 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions),
                Converter = null,
                Getter = static obj => ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions)obj).Attestation,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Attestation",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("Attestation", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[8] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info8);
 
            var info9 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<string>>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions),
                Converter = null,
                Getter = static obj => ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions)obj).AttestationFormats,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "AttestationFormats",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("AttestationFormats", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[9] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<string>>(options, info9);
            properties[9].IsGetNullable = false;
            properties[9].IsSetNullable = false;
 
            var info10 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Text.Json.JsonElement?>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions),
                Converter = null,
                Getter = static obj => ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions)obj).Extensions,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Extensions",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("Extensions", InstanceMemberBindingFlags, null, typeof(global::System.Text.Json.JsonElement?), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[10] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Text.Json.JsonElement?>(options, info10);
 
            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 PublicKeyCredentialCreationOptionsSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions? value)
        {
            if (value is null)
            {
                writer.WriteNullValue();
                return;
            }
            
            writer.WriteStartObject();
 
            global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRpEntity __value_Rp = ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions)value).Rp;
            if (__value_Rp is not null)
            {
                writer.WritePropertyName(PropName_rp);
                PublicKeyCredentialRpEntitySerializeHandler(writer, __value_Rp);
            }
            global::Microsoft.AspNetCore.Identity.PublicKeyCredentialUserEntity __value_User = ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions)value).User;
            if (__value_User is not null)
            {
                writer.WritePropertyName(PropName_user);
                PublicKeyCredentialUserEntitySerializeHandler(writer, __value_User);
            }
            global::Microsoft.AspNetCore.Identity.BufferSource __value_Challenge = ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions)value).Challenge;
            if (__value_Challenge is not null)
            {
                writer.WritePropertyName(PropName_challenge);
                global::System.Text.Json.JsonSerializer.Serialize(writer, __value_Challenge, BufferSource);
            }
            global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters> __value_PubKeyCredParams = ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions)value).PubKeyCredParams;
            if (__value_PubKeyCredParams is not null)
            {
                writer.WritePropertyName(PropName_pubKeyCredParams);
                IReadOnlyListPublicKeyCredentialParametersSerializeHandler(writer, __value_PubKeyCredParams);
            }
            ulong? __value_Timeout = ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions)value).Timeout;
            if (__value_Timeout is not null)
            {
                writer.WritePropertyName(PropName_timeout);
                global::System.Text.Json.JsonSerializer.Serialize(writer, __value_Timeout, NullableUInt64);
            }
            global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor> __value_ExcludeCredentials = ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions)value).ExcludeCredentials;
            if (__value_ExcludeCredentials is not null)
            {
                writer.WritePropertyName(PropName_excludeCredentials);
                IReadOnlyListPublicKeyCredentialDescriptorSerializeHandler(writer, __value_ExcludeCredentials);
            }
            global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria __value_AuthenticatorSelection = ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions)value).AuthenticatorSelection;
            if (__value_AuthenticatorSelection is not null)
            {
                writer.WritePropertyName(PropName_authenticatorSelection);
                AuthenticatorSelectionCriteriaSerializeHandler(writer, __value_AuthenticatorSelection);
            }
            global::System.Collections.Generic.IReadOnlyList<string> __value_Hints = ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions)value).Hints;
            if (__value_Hints is not null)
            {
                writer.WritePropertyName(PropName_hints);
                IReadOnlyListStringSerializeHandler(writer, __value_Hints);
            }
            string __value_Attestation = ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions)value).Attestation;
            if (__value_Attestation is not null)
            {
                writer.WriteString(PropName_attestation, __value_Attestation);
            }
            global::System.Collections.Generic.IReadOnlyList<string> __value_AttestationFormats = ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions)value).AttestationFormats;
            if (__value_AttestationFormats is not null)
            {
                writer.WritePropertyName(PropName_attestationFormats);
                IReadOnlyListStringSerializeHandler(writer, __value_AttestationFormats);
            }
            global::System.Text.Json.JsonElement? __value_Extensions = ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions)value).Extensions;
            if (__value_Extensions is not null)
            {
                writer.WritePropertyName(PropName_extensions);
                global::System.Text.Json.JsonSerializer.Serialize(writer, __value_Extensions, NullableJsonElement);
            }
 
            writer.WriteEndObject();
        }
 
        private static global::System.Text.Json.Serialization.Metadata.JsonParameterInfoValues[] PublicKeyCredentialCreationOptionsCtorParamInit() => new global::System.Text.Json.Serialization.Metadata.JsonParameterInfoValues[]
        {
            new()
            {
                Name = "Rp",
                ParameterType = typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRpEntity),
                Position = 0,
                IsNullable = false,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "User",
                ParameterType = typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialUserEntity),
                Position = 1,
                IsNullable = false,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "Challenge",
                ParameterType = typeof(global::Microsoft.AspNetCore.Identity.BufferSource),
                Position = 2,
                IsNullable = false,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "PubKeyCredParams",
                ParameterType = typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters>),
                Position = 3,
                IsNullable = false,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "Timeout",
                ParameterType = typeof(ulong?),
                Position = 4,
                IsNullable = true,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "ExcludeCredentials",
                ParameterType = typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor>),
                Position = 5,
                IsNullable = false,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "AuthenticatorSelection",
                ParameterType = typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria),
                Position = 6,
                IsNullable = true,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "Hints",
                ParameterType = typeof(global::System.Collections.Generic.IReadOnlyList<string>),
                Position = 7,
                IsNullable = false,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "Attestation",
                ParameterType = typeof(string),
                Position = 8,
                IsNullable = true,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "AttestationFormats",
                ParameterType = typeof(global::System.Collections.Generic.IReadOnlyList<string>),
                Position = 9,
                IsNullable = false,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "Extensions",
                ParameterType = typeof(global::System.Text.Json.JsonElement?),
                Position = 10,
                IsNullable = true,
                IsMemberInitializer = true,
            },
        };
    }
}