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

JsonContract

public abstract class JsonContract
Contract details for a Type used by the JsonSerializer.
public JsonConverter Converter { get; set; }

Gets or sets the default JsonConverter for this contract.

public Type CreatedType { get; set; }

Gets or sets the type created during deserialization.

public Func<object> DefaultCreator { get; set; }

Gets or sets the default creator method used to create the object.

public bool DefaultCreatorNonPublic { get; set; }

Gets or sets a value indicating whether the default creator is non-public.

public bool? IsReference { get; set; }

Gets or sets whether this type contract is serialized as a reference.

Gets or sets all methods called immediately after deserialization of the object.

Gets or sets all methods called during deserialization of the object.

Gets or sets all method called when an error is thrown during the serialization of the object.

Gets or sets all methods called after serialization of the object graph.

Gets or sets all methods called before serialization of the object.

public Type UnderlyingType { get; }

Gets the underlying type for the contract.