Table of Contents

Class AccountAddressConverter

Namespace
Aptos
Assembly
Aptos.dll
public class AccountAddressConverter : JsonConverter<AccountAddress>
Inheritance
JsonConverter
JsonConverter<AccountAddress>
AccountAddressConverter
Inherited Members
JsonConverter.CanRead
JsonConverter.CanWrite

Methods

ReadJson(JsonReader, Type, AccountAddress?, bool, JsonSerializer)

Reads the JSON representation of the object.

public override AccountAddress? ReadJson(JsonReader reader, Type objectType, AccountAddress? existingValue, bool hasExistingValue, JsonSerializer serializer)

Parameters

reader JsonReader

The Newtonsoft.Json.JsonReader to read from.

objectType Type

Type of the object.

existingValue AccountAddress

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

AccountAddress

The object value.

WriteJson(JsonWriter, AccountAddress?, JsonSerializer)

Writes the JSON representation of the object.

public override void WriteJson(JsonWriter writer, AccountAddress? value, JsonSerializer serializer)

Parameters

writer JsonWriter

The Newtonsoft.Json.JsonWriter to write to.

value AccountAddress

The value.

serializer JsonSerializer

The calling serializer.