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

SerializationBinder

public abstract class SerializationBinder
Allows users to control class loading and mandate what class to load.
protected SerializationBinder()

public virtual void BindToName(Type serializedType, out string assemblyName, out string typeName)

When overridden in a derived class, controls the binding of a serialized object to a type.

public abstract Type BindToType(string assemblyName, string typeName)

When overridden in a derived class, controls the binding of a serialized object to a type.