Table of Contents

Class PublicKeyConverter

Namespace
Aptos
Assembly
Aptos.dll
public class PublicKeyConverter : JsonConverter<PublicKey>
Inheritance
JsonConverter
JsonConverter<PublicKey>
PublicKeyConverter
Inherited Members
JsonConverter.CanRead
JsonConverter.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 JsonReader

The Newtonsoft.Json.JsonReader to read from.

objectType Type

Type of the object.

existingValue PublicKey

The existing value of object being read. If there is no existing value then null will be used.

hasExistingValue bool

The existing value has a value.

serializer JsonSerializer

The 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 JsonWriter

The Newtonsoft.Json.JsonWriter to write to.

value PublicKey

The value.

serializer JsonSerializer

The calling serializer.