|
// <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.Sdk
{
internal partial class CapabilitiesJsonContext : 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.Sdk.CallbackParameterInfo))
{
return Create_CallbackParameterInfo(options);
}
if (type == typeof(global::Aspire.Cli.Commands.Sdk.CapabilitiesInfo))
{
return Create_CapabilitiesInfo(options);
}
if (type == typeof(global::Aspire.Cli.Commands.Sdk.CapabilityInfo))
{
return Create_CapabilityInfo(options);
}
if (type == typeof(global::Aspire.Cli.Commands.Sdk.DiagnosticInfo))
{
return Create_DiagnosticInfo(options);
}
if (type == typeof(global::Aspire.Cli.Commands.Sdk.DtoPropertyInfo))
{
return Create_DtoPropertyInfo(options);
}
if (type == typeof(global::Aspire.Cli.Commands.Sdk.DtoTypeInfo))
{
return Create_DtoTypeInfo(options);
}
if (type == typeof(global::Aspire.Cli.Commands.Sdk.EnumTypeInfo))
{
return Create_EnumTypeInfo(options);
}
if (type == typeof(global::Aspire.Cli.Commands.Sdk.HandleTypeInfo))
{
return Create_HandleTypeInfo(options);
}
if (type == typeof(global::Aspire.Cli.Commands.Sdk.ParameterInfo))
{
return Create_ParameterInfo(options);
}
if (type == typeof(global::Aspire.Cli.Commands.Sdk.TypeRefInfo))
{
return Create_TypeRefInfo(options);
}
if (type == typeof(global::System.Collections.Generic.List<global::Aspire.Cli.Commands.Sdk.CallbackParameterInfo>))
{
return Create_ListCallbackParameterInfo(options);
}
if (type == typeof(global::System.Collections.Generic.List<global::Aspire.Cli.Commands.Sdk.CapabilityInfo>))
{
return Create_ListCapabilityInfo(options);
}
if (type == typeof(global::System.Collections.Generic.List<global::Aspire.Cli.Commands.Sdk.DiagnosticInfo>))
{
return Create_ListDiagnosticInfo(options);
}
if (type == typeof(global::System.Collections.Generic.List<global::Aspire.Cli.Commands.Sdk.DtoPropertyInfo>))
{
return Create_ListDtoPropertyInfo(options);
}
if (type == typeof(global::System.Collections.Generic.List<global::Aspire.Cli.Commands.Sdk.DtoTypeInfo>))
{
return Create_ListDtoTypeInfo(options);
}
if (type == typeof(global::System.Collections.Generic.List<global::Aspire.Cli.Commands.Sdk.EnumTypeInfo>))
{
return Create_ListEnumTypeInfo(options);
}
if (type == typeof(global::System.Collections.Generic.List<global::Aspire.Cli.Commands.Sdk.HandleTypeInfo>))
{
return Create_ListHandleTypeInfo(options);
}
if (type == typeof(global::System.Collections.Generic.List<global::Aspire.Cli.Commands.Sdk.ParameterInfo>))
{
return Create_ListParameterInfo(options);
}
if (type == typeof(global::System.Collections.Generic.List<global::Aspire.Cli.Commands.Sdk.TypeRefInfo>))
{
return Create_ListTypeRefInfo(options);
}
if (type == typeof(global::System.Collections.Generic.List<string>))
{
return Create_ListString(options);
}
if (type == typeof(string))
{
return Create_String(options);
}
return null;
}
}
}
|