Class TransactionResponseConverter
Transaction json Converter
Namespace: Xrpl.Client.Json.Converters
Assembly: Xrpl.dll
Syntax
public class TransactionResponseConverter : JsonConverter<ITransactionResponse>
Methods
| Edit this page View SourceCanConvert(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 |
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 |
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 |