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