Class PublicKeyConverter
- Namespace
- Aptos
- Assembly
- Aptos.dll
public class PublicKeyConverter : JsonConverter<PublicKey>
- Inheritance
-
JsonConverterJsonConverter<PublicKey>PublicKeyConverter
- Inherited Members
-
JsonConverter.CanReadJsonConverter.CanWrite
Methods
ReadJson(JsonReader, Type, PublicKey?, bool, JsonSerializer)
Reads the JSON representation of the object.
public override PublicKey? ReadJson(JsonReader reader, Type objectType, PublicKey? existingValue, bool hasExistingValue, JsonSerializer serializer)
Parameters
reader
JsonReaderThe Newtonsoft.Json.JsonReader to read from.
objectType
TypeType of the object.
existingValue
PublicKeyThe existing value of object being read. If there is no existing value then
null
will be used.hasExistingValue
boolThe existing value has a value.
serializer
JsonSerializerThe calling serializer.
Returns
- PublicKey
The object value.
WriteJson(JsonWriter, PublicKey?, JsonSerializer)
Writes the JSON representation of the object.
public override void WriteJson(JsonWriter writer, PublicKey? value, JsonSerializer serializer)
Parameters
writer
JsonWriterThe Newtonsoft.Json.JsonWriter to write to.
value
PublicKeyThe value.
serializer
JsonSerializerThe calling serializer.