File: ResourceJsonSerializerContext.GetJsonTypeInfo.g.cs
Project: src\src\Aspire.Dashboard\Aspire.Dashboard.csproj (Aspire.Dashboard)
// <auto-generated/>
 
#nullable enable annotations
#nullable disable warnings
 
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0612, CS0618
 
namespace Aspire.Dashboard.Model.Serialization
{
    internal sealed partial class ResourceJsonSerializerContext : 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.Dashboard.Model.Serialization.ResourceEnvironmentVariableJson))
            {
                return Create_ResourceEnvironmentVariableJson(options);
            }
            if (type == typeof(global::Aspire.Dashboard.Model.Serialization.ResourceEnvironmentVariableJson[]))
            {
                return Create_ResourceEnvironmentVariableJsonArray(options);
            }
            if (type == typeof(global::Aspire.Dashboard.Model.Serialization.ResourceHealthReportJson))
            {
                return Create_ResourceHealthReportJson(options);
            }
            if (type == typeof(global::Aspire.Dashboard.Model.Serialization.ResourceHealthReportJson[]))
            {
                return Create_ResourceHealthReportJsonArray(options);
            }
            if (type == typeof(global::Aspire.Dashboard.Model.Serialization.ResourceJson))
            {
                return Create_ResourceJson(options);
            }
            if (type == typeof(global::Aspire.Dashboard.Model.Serialization.ResourcePropertyJson))
            {
                return Create_ResourcePropertyJson(options);
            }
            if (type == typeof(global::Aspire.Dashboard.Model.Serialization.ResourcePropertyJson[]))
            {
                return Create_ResourcePropertyJsonArray(options);
            }
            if (type == typeof(global::Aspire.Dashboard.Model.Serialization.ResourceRelationshipJson))
            {
                return Create_ResourceRelationshipJson(options);
            }
            if (type == typeof(global::Aspire.Dashboard.Model.Serialization.ResourceRelationshipJson[]))
            {
                return Create_ResourceRelationshipJsonArray(options);
            }
            if (type == typeof(global::Aspire.Dashboard.Model.Serialization.ResourceUrlJson))
            {
                return Create_ResourceUrlJson(options);
            }
            if (type == typeof(global::Aspire.Dashboard.Model.Serialization.ResourceUrlJson[]))
            {
                return Create_ResourceUrlJsonArray(options);
            }
            if (type == typeof(global::Aspire.Dashboard.Model.Serialization.ResourceVolumeJson))
            {
                return Create_ResourceVolumeJson(options);
            }
            if (type == typeof(global::Aspire.Dashboard.Model.Serialization.ResourceVolumeJson[]))
            {
                return Create_ResourceVolumeJsonArray(options);
            }
            if (type == typeof(global::System.DateTime))
            {
                return Create_DateTime(options);
            }
            if (type == typeof(global::System.DateTime?))
            {
                return Create_NullableDateTime(options);
            }
            if (type == typeof(string))
            {
                return Create_String(options);
            }
            return null;
        }
    }
}