<PackageReference Include="NJsonSchema" Version="9.13.16" />

PropertyRenameAndIgnoreSerializerContractResolver

JsonConvert resolver that allows to ignore and rename properties for given types.

Initializes a new instance of the PropertyRenameAndIgnoreSerializerContractResolver class.

public void IgnoreProperty(Type type, string[] jsonPropertyNames)

Ignore the given property/properties of the given type.

public void RenameProperty(Type type, string propertyName, string newJsonPropertyName)

Rename a property of the given type.