Show / Hide Table of Contents

Class TransactionResponseConverter

Transaction json Converter

Inheritance
object
JsonConverter
JsonConverter<ITransactionResponse>
TransactionResponseConverter
Namespace: Xrpl.Client.Json.Converters
Assembly: Xrpl.dll
Syntax
public class TransactionResponseConverter : JsonConverter<ITransactionResponse>

Methods

| Edit this page View Source

CanConvert(Type)

Determines whether the specified type can be converted.

Declaration
public override bool CanConvert(Type typeToConvert)
Parameters
Type Name Description
Type typeToConvert

The type to compare against.

Returns
Type Description
bool

true if the type can be converted; otherwise, false.

Overrides
System.Text.Json.Serialization.JsonConverter<Xrpl.Models.Transactions.ITransactionResponse>.CanConvert(System.Type)
| Edit this page View Source

Create(string)

create ITransactionResponse by TransactionType discriminator

Declaration
public static ITransactionResponse Create(string transactionType)
Parameters
Type Name Description
string transactionType
Returns
Type Description
ITransactionResponse
| Edit this page View Source

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

read ITransactionResponse from json object

Declaration
public override ITransactionResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
Type Name Description
Utf8JsonReader reader
Type typeToConvert
JsonSerializerOptions options
Returns
Type Description
ITransactionResponse
Overrides
System.Text.Json.Serialization.JsonConverter<Xrpl.Models.Transactions.ITransactionResponse>.Read(ref System.Text.Json.Utf8JsonReader, System.Type, System.Text.Json.JsonSerializerOptions)
| Edit this page View Source

Write(Utf8JsonWriter, ITransactionResponse, JsonSerializerOptions)

Writes an ITransactionResponse to JSON.

Declaration
public override void Write(Utf8JsonWriter writer, ITransactionResponse value, JsonSerializerOptions options)
Parameters
Type Name Description
Utf8JsonWriter writer
ITransactionResponse value
JsonSerializerOptions options
Overrides
JsonConverter<ITransactionResponse>.Write(Utf8JsonWriter, ITransactionResponse, JsonSerializerOptions)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX