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

JsonObjectAttribute

Instructs the JsonSerializer how to serialize the object.
public Required ItemRequired { get; set; }

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

Gets or sets the member serialization.

Initializes a new instance of the JsonObjectAttribute class.

public JsonObjectAttribute(MemberSerialization memberSerialization)

Initializes a new instance of the JsonObjectAttribute class with the specified member serialization.

public JsonObjectAttribute(string id)

Initializes a new instance of the JsonObjectAttribute class with the specified container Id.