# PolygonConverter Class

> `PolygonConverter` is a public class that handles `Newtonsoft.JSON` serialization and de-serialization of the `Polygon` type.

`PolygonConverter` is a public class that handles `Newtonsoft.JSON` serialization and de-serialization of the `Polygon` type.

## Definition

* Namespace: `UiPath.DocumentProcessing.Contracts`
* Assembly: `UiPath.DocumentProcessing.Contracts`

## Description

A public class that handles `Newtonsoft.JSON` serialization and de-serialization of the `Polygon` type.

## Members

#### Constructors

`PolygonConverter()` - The public constructor.

## Methods

* `CanConvert`(`System.Type, bool`) - Determines whether the instance can convert the specified object type.
* `ReadJson`(`Newtonsoft.Json.JsonReader, System.Type, object,Newtonsoft.Json.JsonSerializer` ) - Deserializes the JSON representation of the object.
* `WriteJson` (`Newtonsoft.Json.JsonWriter, object, Newtonsoft.Json.JsonSerializer` ) - Serializes the object to its JSON representation.
