File: OtlpCliJsonSerializerContext.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.Otlp
{
    internal sealed partial class OtlpCliJsonSerializerContext : 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(bool?))
            {
                return Create_NullableBoolean(options);
            }
            if (type == typeof(double))
            {
                return Create_Double(options);
            }
            if (type == typeof(double?))
            {
                return Create_NullableDouble(options);
            }
            if (type == typeof(global::Aspire.Cli.Otlp.ResourceInfoJson))
            {
                return Create_ResourceInfoJson(options);
            }
            if (type == typeof(global::Aspire.Cli.Otlp.ResourceInfoJson[]))
            {
                return Create_ResourceInfoJsonArray(options);
            }
            if (type == typeof(global::Aspire.Cli.Otlp.TelemetryApiResponse))
            {
                return Create_TelemetryApiResponse(options);
            }
            if (type == typeof(global::Aspire.Cli.Otlp.TelemetryDataJson))
            {
                return Create_TelemetryDataJson(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpAnyValueJson))
            {
                return Create_OtlpAnyValueJson(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpAnyValueJson[]))
            {
                return Create_OtlpAnyValueJsonArray(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpArrayValueJson))
            {
                return Create_OtlpArrayValueJson(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpEntityRefJson))
            {
                return Create_OtlpEntityRefJson(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpEntityRefJson[]))
            {
                return Create_OtlpEntityRefJsonArray(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpExportLogsServiceRequestJson))
            {
                return Create_OtlpExportLogsServiceRequestJson(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpExportTraceServiceRequestJson))
            {
                return Create_OtlpExportTraceServiceRequestJson(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpInstrumentationScopeJson))
            {
                return Create_OtlpInstrumentationScopeJson(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpKeyValueJson))
            {
                return Create_OtlpKeyValueJson(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpKeyValueJson[]))
            {
                return Create_OtlpKeyValueJsonArray(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpKeyValueListJson))
            {
                return Create_OtlpKeyValueListJson(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpLogRecordJson))
            {
                return Create_OtlpLogRecordJson(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpLogRecordJson[]))
            {
                return Create_OtlpLogRecordJsonArray(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpResourceJson))
            {
                return Create_OtlpResourceJson(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpResourceLogsJson))
            {
                return Create_OtlpResourceLogsJson(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpResourceLogsJson[]))
            {
                return Create_OtlpResourceLogsJsonArray(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpResourceSpansJson))
            {
                return Create_OtlpResourceSpansJson(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpResourceSpansJson[]))
            {
                return Create_OtlpResourceSpansJsonArray(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpScopeLogsJson))
            {
                return Create_OtlpScopeLogsJson(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpScopeLogsJson[]))
            {
                return Create_OtlpScopeLogsJsonArray(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpScopeSpansJson))
            {
                return Create_OtlpScopeSpansJson(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpScopeSpansJson[]))
            {
                return Create_OtlpScopeSpansJsonArray(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpSpanEventJson))
            {
                return Create_OtlpSpanEventJson(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpSpanEventJson[]))
            {
                return Create_OtlpSpanEventJsonArray(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpSpanJson))
            {
                return Create_OtlpSpanJson(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpSpanJson[]))
            {
                return Create_OtlpSpanJsonArray(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpSpanLinkJson))
            {
                return Create_OtlpSpanLinkJson(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpSpanLinkJson[]))
            {
                return Create_OtlpSpanLinkJsonArray(options);
            }
            if (type == typeof(global::Aspire.Otlp.Serialization.OtlpSpanStatusJson))
            {
                return Create_OtlpSpanStatusJson(options);
            }
            if (type == typeof(int))
            {
                return Create_Int32(options);
            }
            if (type == typeof(int?))
            {
                return Create_NullableInt32(options);
            }
            if (type == typeof(long))
            {
                return Create_Int64(options);
            }
            if (type == typeof(long?))
            {
                return Create_NullableInt64(options);
            }
            if (type == typeof(string))
            {
                return Create_String(options);
            }
            if (type == typeof(string[]))
            {
                return Create_StringArray(options);
            }
            if (type == typeof(uint))
            {
                return Create_UInt32(options);
            }
            if (type == typeof(uint?))
            {
                return Create_NullableUInt32(options);
            }
            if (type == typeof(ulong))
            {
                return Create_UInt64(options);
            }
            if (type == typeof(ulong?))
            {
                return Create_NullableUInt64(options);
            }
            return null;
        }
    }
}