File: ResourcesCommandJsonContext.GetJsonTypeInfo.g.cs
Project: src\src\Aspire.Cli\Aspire.Cli.Tool.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.Commands
{
    internal sealed partial class ResourcesCommandJsonContext : 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(global::Aspire.Cli.Commands.ResourcesOutput))
            {
                return Create_ResourcesOutput(options);
            }
            if (type == typeof(global::Aspire.Shared.Model.Serialization.ResourceEnvironmentVariableJson))
            {
                return Create_ResourceEnvironmentVariableJson(options);
            }
            if (type == typeof(global::Aspire.Shared.Model.Serialization.ResourceEnvironmentVariableJson[]))
            {
                return Create_ResourceEnvironmentVariableJsonArray(options);
            }
            if (type == typeof(global::Aspire.Shared.Model.Serialization.ResourceHealthReportJson))
            {
                return Create_ResourceHealthReportJson(options);
            }
            if (type == typeof(global::Aspire.Shared.Model.Serialization.ResourceHealthReportJson[]))
            {
                return Create_ResourceHealthReportJsonArray(options);
            }
            if (type == typeof(global::Aspire.Shared.Model.Serialization.ResourceJson))
            {
                return Create_ResourceJson(options);
            }
            if (type == typeof(global::Aspire.Shared.Model.Serialization.ResourceJson[]))
            {
                return Create_ResourceJsonArray(options);
            }
            if (type == typeof(global::Aspire.Shared.Model.Serialization.ResourcePropertyJson))
            {
                return Create_ResourcePropertyJson(options);
            }
            if (type == typeof(global::Aspire.Shared.Model.Serialization.ResourcePropertyJson[]))
            {
                return Create_ResourcePropertyJsonArray(options);
            }
            if (type == typeof(global::Aspire.Shared.Model.Serialization.ResourceRelationshipJson))
            {
                return Create_ResourceRelationshipJson(options);
            }
            if (type == typeof(global::Aspire.Shared.Model.Serialization.ResourceRelationshipJson[]))
            {
                return Create_ResourceRelationshipJsonArray(options);
            }
            if (type == typeof(global::Aspire.Shared.Model.Serialization.ResourceUrlJson))
            {
                return Create_ResourceUrlJson(options);
            }
            if (type == typeof(global::Aspire.Shared.Model.Serialization.ResourceUrlJson[]))
            {
                return Create_ResourceUrlJsonArray(options);
            }
            if (type == typeof(global::Aspire.Shared.Model.Serialization.ResourceVolumeJson))
            {
                return Create_ResourceVolumeJson(options);
            }
            if (type == typeof(global::Aspire.Shared.Model.Serialization.ResourceVolumeJson[]))
            {
                return Create_ResourceVolumeJsonArray(options);
            }
            if (type == typeof(global::System.DateTimeOffset))
            {
                return Create_DateTimeOffset(options);
            }
            if (type == typeof(global::System.DateTimeOffset?))
            {
                return Create_NullableDateTimeOffset(options);
            }
            if (type == typeof(int))
            {
                return Create_Int32(options);
            }
            if (type == typeof(int?))
            {
                return Create_NullableInt32(options);
            }
            if (type == typeof(string))
            {
                return Create_String(options);
            }
            return null;
        }
    }
}