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

JsonObjectContract

Contract details for a Type used by the JsonSerializer.

Gets the constructor parameters required for any non-default constructor

Gets a collection of JsonProperty instances that define the parameters used with OverrideCreator.

Gets or sets the extension data getter.

Gets or sets the extension data setter.

public Required? ItemRequired { get; set; }

Gets or sets a value that indicates whether the object's properties are required.

Gets or sets the object member serialization.

public ConstructorInfo OverrideConstructor { get; set; }

Gets or sets the override constructor used to create the object. This is set when a constructor is marked up using the JsonConstructor attribute.

public ObjectConstructor<object> OverrideCreator { get; set; }

Gets or sets the function used to create the object. When set this function will override DefaultCreator. This function is called with a collection of arguments which are defined by the CreatorParameters collection.

Gets or sets the parametrized constructor used to create the object.

Gets the object's properties.

public JsonObjectContract(Type underlyingType)

Initializes a new instance of the JsonObjectContract class.