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
readerUtf8JsonReadertypeToConvertTypeoptionsJsonSerializerOptions
Returns
Write(Utf8JsonWriter, Polygon, JsonSerializerOptions)
public override void Write(Utf8JsonWriter writer, Polygon value, JsonSerializerOptions options)
Parameters
writerUtf8JsonWritervaluePolygonoptionsJsonSerializerOptions