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

SerializationBinder

public abstract class SerializationBinder
Allows users to control class loading and mandate what class to load.
using System; namespace Newtonsoft.Json { [Obsolete("SerializationBinder is obsolete. Use ISerializationBinder instead.")] public abstract class SerializationBinder { public abstract Type BindToType(string assemblyName, string typeName); public virtual void BindToName(Type serializedType, out string assemblyName, out string typeName) { assemblyName = null; typeName = null; } } }