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

ISerializationBinder

public interface ISerializationBinder
Allows users to control class loading and mandate what class to load.
using System; namespace Newtonsoft.Json.Serialization { public interface ISerializationBinder { Type BindToType(string assemblyName, string typeName); void BindToName(Type serializedType, out string assemblyName, out string typeName); } }