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
readerJsonReaderThe Newtonsoft.Json.JsonReader to read from.
objectTypeTypeType of the object.
existingValuePublicKeyThe existing value of object being read. If there is no existing value then
nullwill be used.hasExistingValueboolThe existing value has a value.
serializerJsonSerializerThe 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
writerJsonWriterThe Newtonsoft.Json.JsonWriter to write to.
valuePublicKeyThe value.
serializerJsonSerializerThe calling serializer.