Class Point3DConverter
- Namespace
- Moongate.UO.Data.Json.Converters
- Assembly
- Moongate.UO.Data.dll
Represents Point3DConverter.
public class Point3DConverter : JsonConverter<Point3D>
- Inheritance
-
Point3DConverter
- Inherited Members
Methods
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads and converts the JSON to type Point3D.
public override Point3D Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
readerUtf8JsonReaderThe reader.
typeToConvertTypeThe type to convert.
optionsJsonSerializerOptionsAn object that specifies serialization options to use.
Returns
- Point3D
The converted value.
ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)
Read Point3D from JSON property name (dictionary key)
public override Point3D ReadAsPropertyName(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
readerUtf8JsonReadertypeToConvertTypeoptionsJsonSerializerOptions
Returns
Write(Utf8JsonWriter, Point3D, JsonSerializerOptions)
Writes a specified value as JSON.
public override void Write(Utf8JsonWriter writer, Point3D value, JsonSerializerOptions options)
Parameters
writerUtf8JsonWriterThe writer to write to.
valuePoint3DThe value to convert to JSON.
optionsJsonSerializerOptionsAn object that specifies serialization options to use.
WriteAsPropertyName(Utf8JsonWriter, Point3D, JsonSerializerOptions)
Write Point3D as JSON property name (dictionary key)
public override void WriteAsPropertyName(Utf8JsonWriter writer, Point3D value, JsonSerializerOptions options)
Parameters
writerUtf8JsonWritervaluePoint3DoptionsJsonSerializerOptions