<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />

JsonConverterAttribute

public sealed class JsonConverterAttribute : Attribute
Instructs the JsonSerializer to use the specified JsonConverter when serializing the member or class.
using System; using System.Runtime.CompilerServices; namespace Newtonsoft.Json { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Interface | AttributeTargets.Parameter, AllowMultiple = false)] public sealed class JsonConverterAttribute : Attribute { private readonly Type _converterType; public Type ConverterType => _converterType; [System.Runtime.CompilerServices.Nullable(new byte[] { 2, 1 })] [field: System.Runtime.CompilerServices.Nullable(new byte[] { 2, 1 })] public object[] ConverterParameters { [return: System.Runtime.CompilerServices.Nullable(new byte[] { 2, 1 })] get; } public JsonConverterAttribute(Type converterType) { if (converterType == (Type)null) throw new ArgumentNullException("converterType"); _converterType = converterType; } public JsonConverterAttribute(Type converterType, params object[] converterParameters) : this(converterType) { ConverterParameters = converterParameters; } } }