JsonPolymorphicAttribute
using System.Runtime.CompilerServices;
namespace System.Text.Json.Serialization
{
[System.Runtime.CompilerServices.NullableContext(2)]
[System.Runtime.CompilerServices.Nullable(0)]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = false, Inherited = false)]
public sealed class JsonPolymorphicAttribute : JsonAttribute
{
public string CustomTypeDiscriminatorPropertyName { get; set; }
public JsonUnknownDerivedTypeHandling UnknownDerivedTypeHandling { get; set; }
public bool IgnoreUnrecognizedTypeDiscriminators { get; set; }
}
}