Class PolygonJsonConverter

Namespace
Cratis.Json
Assembly
Cratis.Fundamentals.dll

Represents a JsonConverter<T> for Polygon that follows GeoJSON format.

public class PolygonJsonConverter : JsonConverter<Polygon>
Inheritance
PolygonJsonConverter
Inherited Members
Extension Methods

Constructors

PolygonJsonConverter()

public PolygonJsonConverter()

Methods

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

public override Polygon Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Parameters

reader Utf8JsonReader
typeToConvert Type
options JsonSerializerOptions

Returns

Polygon

Write(Utf8JsonWriter, Polygon, JsonSerializerOptions)

public override void Write(Utf8JsonWriter writer, Polygon value, JsonSerializerOptions options)

Parameters

writer Utf8JsonWriter
value Polygon
options JsonSerializerOptions