File: _generated\43\DefineStaticWebAssetsSerializerContext.GetJsonTypeInfo.g.cs
Web Access
Project: src\src\sdk\src\StaticWebAssetsSdk\Tasks\Microsoft.NET.Sdk.StaticWebAssets.Tasks.csproj (Microsoft.NET.Sdk.StaticWebAssets.Tasks)
// <auto-generated/>

#nullable enable annotations
#nullable disable warnings

// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0612, CS0618

namespace Microsoft.AspNetCore.StaticWebAssets.Tasks
{
    public partial class DefineStaticWebAssets
    {
        internal partial class DefineStaticWebAssetsSerializerContext : 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(byte[]))
                {
                    return Create_ByteArray(options);
                }
                if (type == typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.CopyCandidate))
                {
                    return Create_CopyCandidate(options);
                }
                if (type == typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.DefineStaticWebAssetsCache))
                {
                    return Create_DefineStaticWebAssetsCache(options);
                }
                if (type == typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset))
                {
                    return Create_StaticWebAsset(options);
                }
                if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.CopyCandidate>))
                {
                    return Create_DictionaryStringCopyCandidate(options);
                }
                if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>))
                {
                    return Create_DictionaryStringStaticWebAsset(options);
                }
                if (type == typeof(global::System.Collections.Generic.HashSet<string>))
                {
                    return Create_HashSetString(options);
                }
                if (type == typeof(global::System.DateTimeOffset))
                {
                    return Create_DateTimeOffset(options);
                }
                if (type == typeof(long))
                {
                    return Create_Int64(options);
                }
                if (type == typeof(string))
                {
                    return Create_String(options);
                }
                return null;
            }
        }
    }
}