JsonInheritanceAttribute
Defines a child class in the inheritance chain.
using System;
using System.Runtime.CompilerServices;
namespace NJsonSchema.Converters
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = true)]
public class JsonInheritanceAttribute : Attribute
{
public string Key { get; }
public Type Type { get; }
public JsonInheritanceAttribute(string key, Type type)
{
Key = key;
Type = type;
}
}
}