|
// <auto-generated/>
#nullable enable annotations
#nullable disable warnings
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0612, CS0618
namespace NuGet.Protocol.Utility
{
internal partial class JsonContext : 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::NuGet.Protocol.HttpFileSystemBasedFindPackageByIdResource.FlatContainerVersionList))
{
return Create_FlatContainerVersionList(options);
}
if (type == typeof(global::NuGet.Protocol.Model.AutoCompleteModel))
{
return Create_AutoCompleteModel(options);
}
if (type == typeof(global::NuGet.Protocol.Model.CaseInsensitiveDictionary<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.PackageVulnerabilityInfo>>))
{
return Create_VulnerabilityPage(options);
}
if (type == typeof(global::NuGet.Protocol.Model.PackageVulnerabilityInfo))
{
return Create_PackageVulnerabilityInfo(options);
}
if (type == typeof(global::NuGet.Protocol.Model.ServiceIndexEntryModel))
{
return Create_ServiceIndexEntryModel(options);
}
if (type == typeof(global::NuGet.Protocol.Model.ServiceIndexModel))
{
return Create_ServiceIndexModel(options);
}
if (type == typeof(global::NuGet.Protocol.Model.V3VulnerabilityIndexEntry))
{
return Create_V3VulnerabilityIndexEntry(options);
}
if (type == typeof(global::NuGet.Protocol.PackageVulnerabilitySeverity))
{
return Create_PackageVulnerabilitySeverity(options);
}
if (type == typeof(global::NuGet.Versioning.FloatRange))
{
return Create_FloatRange(options);
}
if (type == typeof(global::NuGet.Versioning.NuGetVersion))
{
return Create_NuGetVersion(options);
}
if (type == typeof(global::NuGet.Versioning.NuGetVersionFloatBehavior))
{
return Create_NuGetVersionFloatBehavior(options);
}
if (type == typeof(global::NuGet.Versioning.VersionRange))
{
return Create_VersionRange(options);
}
if (type == typeof(global::System.Collections.Generic.IEnumerable<string>))
{
return Create_IEnumerableString(options);
}
if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.PackageVulnerabilityInfo>))
{
return Create_IReadOnlyListPackageVulnerabilityInfo(options);
}
if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.V3VulnerabilityIndexEntry>))
{
return Create_VulnerabilityIndex(options);
}
if (type == typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Model.ServiceIndexEntryModel>))
{
return Create_ListServiceIndexEntryModel(options);
}
if (type == typeof(global::System.Collections.Generic.List<string>))
{
return Create_ListString(options);
}
if (type == typeof(global::System.Uri))
{
return Create_Uri(options);
}
if (type == typeof(global::System.Version))
{
return Create_Version(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;
}
}
}
|