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

ISerializationBinder

public interface ISerializationBinder
Allows users to control class loading and mandate what class to load.
void BindToName(Type serializedType, out string assemblyName, out string typeName)

When implemented, controls the binding of a serialized object to a type.

Type BindToType(string assemblyName, string typeName)

When implemented, controls the binding of a serialized object to a type.