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

JsonObjectContract

Contract details for a Type used by the JsonSerializer.

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

Gets or sets the extension data getter.

public Func<string, string> ExtensionDataNameResolver { get; set; }

Gets or sets the extension data name resolver.

Gets or sets the extension data setter.

public Type ExtensionDataValueType { get; set; }

Gets or sets the extension data value type.

Gets or sets how the object's properties with null values are handled during serialization and deserialization.

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.

Gets or sets the missing member handling used when deserializing this object.

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 the object's properties.

public JsonObjectContract(Type underlyingType)

Initializes a new instance of the JsonObjectContract class.