File: JsonSourceGenerationContext.GetJsonTypeInfo.g.cs
Project: src\src\Aspire.Cli\Aspire.Cli.csproj (aspire)
// <auto-generated/>
 
#nullable enable annotations
#nullable disable warnings
 
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0612, CS0618
 
namespace Aspire.Cli
{
    internal partial class JsonSourceGenerationContext : 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(bool))
            {
                return Create_Boolean(options);
            }
            if (type == typeof(float))
            {
                return Create_Single(options);
            }
            if (type == typeof(global::Aspire.Cli.Certificates.DevCertInfo))
            {
                return Create_DevCertInfo(options);
            }
            if (type == typeof(global::Aspire.Cli.CliSettings))
            {
                return Create_CliSettings(options);
            }
            if (type == typeof(global::Aspire.Cli.Commands.ConfigInfo))
            {
                return Create_ConfigInfo(options);
            }
            if (type == typeof(global::Aspire.Cli.Commands.FeatureInfo))
            {
                return Create_FeatureInfo(options);
            }
            if (type == typeof(global::Aspire.Cli.Commands.PropertyInfo))
            {
                return Create_PropertyInfo(options);
            }
            if (type == typeof(global::Aspire.Cli.Commands.SettingsSchema))
            {
                return Create_SettingsSchema(options);
            }
            if (type == typeof(global::Aspire.Cli.Configuration.AspireJsonConfiguration))
            {
                return Create_AspireJsonConfiguration(options);
            }
            if (type == typeof(global::Aspire.Cli.Mcp.Docs.DocsContent))
            {
                return Create_DocsContent(options);
            }
            if (type == typeof(global::Aspire.Cli.Mcp.Docs.DocsListItem))
            {
                return Create_DocsListItem(options);
            }
            if (type == typeof(global::Aspire.Cli.Mcp.Docs.DocsListItem[]))
            {
                return Create_DocsListItemArray(options);
            }
            if (type == typeof(global::Aspire.Cli.Mcp.Docs.LlmsDocument))
            {
                return Create_LlmsDocument(options);
            }
            if (type == typeof(global::Aspire.Cli.Mcp.Docs.LlmsDocument[]))
            {
                return Create_LlmsDocumentArray(options);
            }
            if (type == typeof(global::Aspire.Cli.Mcp.Docs.LlmsSection))
            {
                return Create_LlmsSection(options);
            }
            if (type == typeof(global::Aspire.Cli.Mcp.Docs.SearchResult))
            {
                return Create_SearchResult(options);
            }
            if (type == typeof(global::Aspire.Cli.Mcp.Docs.SearchResult[]))
            {
                return Create_SearchResultArray(options);
            }
            if (type == typeof(global::Aspire.Cli.Mcp.Tools.Integration))
            {
                return Create_Integration(options);
            }
            if (type == typeof(global::Aspire.Cli.Mcp.Tools.ListIntegrationsResponse))
            {
                return Create_ListIntegrationsResponse(options);
            }
            if (type == typeof(global::Aspire.Cli.Utils.EnvironmentChecker.ContainerClientJson))
            {
                return Create_ContainerClientJson(options);
            }
            if (type == typeof(global::Aspire.Cli.Utils.EnvironmentChecker.ContainerServerJson))
            {
                return Create_ContainerServerJson(options);
            }
            if (type == typeof(global::Aspire.Cli.Utils.EnvironmentChecker.ContainerVersionJson))
            {
                return Create_ContainerVersionJson(options);
            }
            if (type == typeof(global::Aspire.Cli.Utils.EnvironmentChecker.DoctorCheckResponse))
            {
                return Create_DoctorCheckResponse(options);
            }
            if (type == typeof(global::Aspire.Cli.Utils.EnvironmentChecker.DoctorCheckSummary))
            {
                return Create_DoctorCheckSummary(options);
            }
            if (type == typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult))
            {
                return Create_EnvironmentCheckResult(options);
            }
            if (type == typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckStatus))
            {
                return Create_EnvironmentCheckStatus(options);
            }
            if (type == typeof(global::System.Collections.Generic.Dictionary<string, bool>))
            {
                return Create_DictionaryStringBoolean(options);
            }
            if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>))
            {
                return Create_DictionaryStringJsonElement(options);
            }
            if (type == typeof(global::System.Collections.Generic.Dictionary<string, string>))
            {
                return Create_DictionaryStringString(options);
            }
            if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Mcp.Docs.LlmsSection>))
            {
                return Create_IReadOnlyListLlmsSection(options);
            }
            if (type == typeof(global::System.Collections.Generic.IReadOnlyList<string>))
            {
                return Create_IReadOnlyListString(options);
            }
            if (type == typeof(global::System.Collections.Generic.List<global::Aspire.Cli.Certificates.DevCertInfo>))
            {
                return Create_ListDevCertInfo(options);
            }
            if (type == typeof(global::System.Collections.Generic.List<global::Aspire.Cli.Commands.FeatureInfo>))
            {
                return Create_ListFeatureInfo(options);
            }
            if (type == typeof(global::System.Collections.Generic.List<global::Aspire.Cli.Commands.PropertyInfo>))
            {
                return Create_ListPropertyInfo(options);
            }
            if (type == typeof(global::System.Collections.Generic.List<global::Aspire.Cli.Mcp.Tools.Integration>))
            {
                return Create_ListIntegration(options);
            }
            if (type == typeof(global::System.Collections.Generic.List<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult>))
            {
                return Create_ListEnvironmentCheckResult(options);
            }
            if (type == typeof(global::System.DateTimeOffset))
            {
                return Create_DateTimeOffset(options);
            }
            if (type == typeof(global::System.Text.Json.JsonElement))
            {
                return Create_JsonElement(options);
            }
            if (type == typeof(global::System.Text.Json.Nodes.JsonObject))
            {
                return Create_JsonObject(options);
            }
            if (type == typeof(int))
            {
                return Create_Int32(options);
            }
            if (type == typeof(string))
            {
                return Create_String(options);
            }
            if (type == typeof(string[]))
            {
                return Create_StringArray(options);
            }
            return null;
        }
    }
}