Table of Contents

Class G2BytesConverter

Namespace
Aptos
Assembly
Aptos.dll
public class G2BytesConverter : JsonConverter<G2Bytes>
Inheritance
JsonConverter
JsonConverter<G2Bytes>
G2BytesConverter
Inherited Members
JsonConverter.CanRead

Properties

CanWrite

Gets a value indicating whether this Newtonsoft.Json.JsonConverter can write JSON.

public override bool CanWrite { get; }

Property Value

bool

true if this Newtonsoft.Json.JsonConverter can write JSON; otherwise, false.

Methods

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

Reads the JSON representation of the object.

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

Parameters

reader JsonReader

The Newtonsoft.Json.JsonReader to read from.

objectType Type

Type of the object.

existingValue G2Bytes

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

G2Bytes

The object value.

WriteJson(JsonWriter, G2Bytes?, JsonSerializer)

Writes the JSON representation of the object.

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

Parameters

writer JsonWriter

The Newtonsoft.Json.JsonWriter to write to.

value G2Bytes

The value.

serializer JsonSerializer

The calling serializer.