Class AccountAddressConverter
- Namespace
- Aptos
- Assembly
- Aptos.dll
public class AccountAddressConverter : JsonConverter<AccountAddress>
- Inheritance
-
JsonConverterJsonConverter<AccountAddress>AccountAddressConverter
- Inherited Members
-
JsonConverter.CanReadJsonConverter.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
readerJsonReaderThe Newtonsoft.Json.JsonReader to read from.
objectTypeTypeType of the object.
existingValueAccountAddressThe 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
- 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
writerJsonWriterThe Newtonsoft.Json.JsonWriter to write to.
valueAccountAddressThe value.
serializerJsonSerializerThe calling serializer.