Class G1BytesConverter
- Namespace
- Aptos
- Assembly
- Aptos.dll
public class G1BytesConverter : JsonConverter<G1Bytes>
- Inheritance
-
JsonConverterJsonConverter<G1Bytes>G1BytesConverter
- 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
trueif this Newtonsoft.Json.JsonConverter can write JSON; otherwise,false.
Methods
ReadJson(JsonReader, Type, G1Bytes?, bool, JsonSerializer)
Reads the JSON representation of the object.
public override G1Bytes? ReadJson(JsonReader reader, Type objectType, G1Bytes? existingValue, bool hasExistingValue, JsonSerializer serializer)
Parameters
readerJsonReaderThe Newtonsoft.Json.JsonReader to read from.
objectTypeTypeType of the object.
existingValueG1BytesThe 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
- G1Bytes
The object value.
WriteJson(JsonWriter, G1Bytes?, JsonSerializer)
Writes the JSON representation of the object.
public override void WriteJson(JsonWriter writer, G1Bytes? value, JsonSerializer serializer)
Parameters
writerJsonWriterThe Newtonsoft.Json.JsonWriter to write to.
valueG1BytesThe value.
serializerJsonSerializerThe calling serializer.