File: Generated\361d1da7f942c932\JsonContext.NullableImageGenerationResponseFormat.g.cs
Project: ..\..\..\src\Libraries\Microsoft.Extensions.AI.Abstractions\Microsoft.Extensions.AI.Abstractions.csproj (Microsoft.Extensions.AI.Abstractions)
// <auto-generated/>
 
#nullable enable annotations
#nullable disable warnings
 
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0612, CS0618
 
namespace Microsoft.Extensions.AI
{
    public static partial class AIJsonUtilities
    {
        private sealed partial class JsonContext
        {
            private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationResponseFormat?>? _NullableImageGenerationResponseFormat;
            
            /// <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.Extensions.AI.ImageGenerationResponseFormat?> NullableImageGenerationResponseFormat
            #nullable enable annotations
            {
                get => _NullableImageGenerationResponseFormat ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationResponseFormat?>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.ImageGenerationResponseFormat?));
            }
            
            private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationResponseFormat?> Create_NullableImageGenerationResponseFormat(global::System.Text.Json.JsonSerializerOptions options)
            {
                if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.ImageGenerationResponseFormat?>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.ImageGenerationResponseFormat?> jsonTypeInfo))
                {
                    global::System.Text.Json.Serialization.JsonConverter converter = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.GetNullableConverter<global::Microsoft.Extensions.AI.ImageGenerationResponseFormat>(options);
                    jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateValueInfo<global::Microsoft.Extensions.AI.ImageGenerationResponseFormat?>(options, converter);
                }
            
                jsonTypeInfo.OriginatingResolver = this;
                return jsonTypeInfo;
            }
        }
    }
}