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