File: _generated\143\JsonContext.GetJsonTypeInfo.g.cs
Web Access
Project: src\nuget-client\src\NuGet.Core\NuGet.Protocol\NuGet.Protocol.csproj (NuGet.Protocol)
// <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.Frameworks.NuGetFramework))
            {
                return Create_NuGetFramework(options);
            }
            if (type == typeof(global::NuGet.Packaging.Core.PackageDependency))
            {
                return Create_PackageDependency(options);
            }
            if (type == typeof(global::NuGet.Packaging.PackageDependencyGroup))
            {
                return Create_PackageDependencyGroup(options);
            }
            if (type == typeof(global::NuGet.Protocol.AlternatePackageMetadata))
            {
                return Create_AlternatePackageMetadata(options);
            }
            if (type == typeof(global::NuGet.Protocol.Core.Types.VersionInfo))
            {
                return Create_VersionInfo(options);
            }
            if (type == typeof(global::NuGet.Protocol.Core.Types.VersionInfo[]))
            {
                return Create_VersionInfoArray(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.RegistrationIndex))
            {
                return Create_RegistrationIndex(options);
            }
            if (type == typeof(global::NuGet.Protocol.Model.RegistrationLeafItem))
            {
                return Create_RegistrationLeafItem(options);
            }
            if (type == typeof(global::NuGet.Protocol.Model.RegistrationPage))
            {
                return Create_RegistrationPage(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.PackageDeprecationMetadata))
            {
                return Create_PackageDeprecationMetadata(options);
            }
            if (type == typeof(global::NuGet.Protocol.PackageSearchMetadataRegistration))
            {
                return Create_PackageSearchMetadataRegistration(options);
            }
            if (type == typeof(global::NuGet.Protocol.PackageVulnerabilityMetadata))
            {
                return Create_PackageVulnerabilityMetadata(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<global::NuGet.Packaging.Core.PackageDependency>))
            {
                return Create_IEnumerablePackageDependency(options);
            }
            if (type == typeof(global::System.Collections.Generic.IEnumerable<global::NuGet.Packaging.PackageDependencyGroup>))
            {
                return Create_IEnumerablePackageDependencyGroup(options);
            }
            if (type == typeof(global::System.Collections.Generic.IEnumerable<global::NuGet.Protocol.PackageVulnerabilityMetadata>))
            {
                return Create_IEnumerablePackageVulnerabilityMetadata(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.IReadOnlyList<string>))
            {
                return Create_IReadOnlyListString(options);
            }
            if (type == typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>))
            {
                return Create_ListRegistrationLeafItem(options);
            }
            if (type == typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>))
            {
                return Create_ListRegistrationPage(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.DateTimeOffset))
            {
                return Create_DateTimeOffset(options);
            }
            if (type == typeof(global::System.DateTimeOffset?))
            {
                return Create_NullableDateTimeOffset(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(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);
            }
            return null;
        }
    }
}