File: Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.GetJsonTypeInfo.g.cs
Project: ..\..\..\test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\Microsoft.Extensions.AI.Abstractions.Tests.csproj (Microsoft.Extensions.AI.Abstractions.Tests)
// <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 AIJsonUtilitiesTests
    {
        private partial class JsonContext : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver
        {
            /// <inheritdoc/>
            public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type)
            {
                Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo);
                return typeInfo;
            }
 
            global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
            {
                if (type == typeof(global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary))
                {
                    return Create_AdditionalPropertiesDictionary(options);
                }
                if (type == typeof(global::Microsoft.Extensions.AI.AIAnnotation))
                {
                    return Create_AIAnnotation(options);
                }
                if (type == typeof(global::Microsoft.Extensions.AI.AIJsonUtilitiesTests.ClassWithNullableMaxLengthProperty))
                {
                    return Create_ClassWithNullableMaxLengthProperty(options);
                }
                if (type == typeof(global::Microsoft.Extensions.AI.AIJsonUtilitiesTests.CreateJsonSchema_IncorporatesTypesAndAnnotations_Type))
                {
                    return Create_CreateJsonSchema_IncorporatesTypesAndAnnotations_Type(options);
                }
                if (type == typeof(global::Microsoft.Extensions.AI.AIJsonUtilitiesTests.DerivedAIContent))
                {
                    return Create_DerivedAIContent(options);
                }
                if (type == typeof(global::Microsoft.Extensions.AI.AIJsonUtilitiesTests.DerivedToolCallContent))
                {
                    return Create_DerivedToolCallContent(options);
                }
                if (type == typeof(global::Microsoft.Extensions.AI.AIJsonUtilitiesTests.LeafContent))
                {
                    return Create_LeafContent(options);
                }
                if (type == typeof(global::Microsoft.Extensions.AI.AIJsonUtilitiesTests.MyEnumValue))
                {
                    return Create_MyEnumValue(options);
                }
                if (type == typeof(global::Microsoft.Extensions.AI.AIJsonUtilitiesTests.MyEnumValue?))
                {
                    return Create_NullableMyEnumValue(options);
                }
                if (type == typeof(global::Microsoft.Extensions.AI.AIJsonUtilitiesTests.MyPoco))
                {
                    return Create_MyPoco(options);
                }
                if (type == typeof(global::Microsoft.Extensions.AI.AIJsonUtilitiesTests.TypeWithRequiredMembers))
                {
                    return Create_TypeWithRequiredMembers(options);
                }
                if (type == typeof(global::Microsoft.Extensions.AI.AnnotatedRegion))
                {
                    return Create_AnnotatedRegion(options);
                }
                if (type == typeof(global::Microsoft.Extensions.AI.CitationAnnotation))
                {
                    return Create_CitationAnnotation(options);
                }
                if (type == typeof(global::Microsoft.Extensions.AI.TextSpanAnnotatedRegion))
                {
                    return Create_TextSpanAnnotatedRegion(options);
                }
                if (type == typeof(global::System.Collections.Generic.IList<global::Microsoft.Extensions.AI.AIAnnotation>))
                {
                    return Create_IListAIAnnotation(options);
                }
                if (type == typeof(global::System.Collections.Generic.IList<global::Microsoft.Extensions.AI.AnnotatedRegion>))
                {
                    return Create_IListAnnotatedRegion(options);
                }
                if (type == typeof(global::System.DateTime))
                {
                    return Create_DateTime(options);
                }
                if (type == typeof(global::System.DateTimeOffset))
                {
                    return Create_DateTimeOffset(options);
                }
                if (type == typeof(global::System.Guid))
                {
                    return Create_Guid(options);
                }
                if (type == typeof(global::System.Text.Json.JsonElement))
                {
                    return Create_JsonElement(options);
                }
                if (type == typeof(global::System.TimeSpan))
                {
                    return Create_TimeSpan(options);
                }
                if (type == typeof(global::System.Uri))
                {
                    return Create_Uri(options);
                }
                if (type == typeof(int))
                {
                    return Create_Int32(options);
                }
                if (type == typeof(int?))
                {
                    return Create_NullableInt32(options);
                }
                if (type == typeof(int[]))
                {
                    return Create_Int32Array(options);
                }
                if (type == typeof(object))
                {
                    return Create_Object(options);
                }
                if (type == typeof(object[]))
                {
                    return Create_ObjectArray(options);
                }
                if (type == typeof(string))
                {
                    return Create_String(options);
                }
                return null;
            }
        }
    }
}