Class LOConverter
BaseLedgerEntry json converter
Namespace: Xrpl.Client.Json.Converters
Assembly: Xrpl.dll
Syntax
public class LOConverter : JsonConverter<BaseLedgerEntry>
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.Ledger.BaseLedgerEntry>.CanConvert(System.Type)
|
Edit this page
View Source
GetBaseRippleLO(LedgerEntryType, JsonElement?, JsonSerializerOptions)
Convert ledger entry json element to typed ledger object
Declaration
public static BaseLedgerEntry GetBaseRippleLO(LedgerEntryType type, JsonElement? element, JsonSerializerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| LedgerEntryType | type | field type |
| JsonElement? | element | current json element (nullable) |
| JsonSerializerOptions | options | serializer options |
Returns
| Type | Description |
|---|---|
| BaseLedgerEntry |
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
read BaseLedgerEntry from json object
Declaration
public override BaseLedgerEntry Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| Utf8JsonReader | reader | |
| Type | typeToConvert | |
| JsonSerializerOptions | options |
Returns
| Type | Description |
|---|---|
| BaseLedgerEntry |
Overrides
System.Text.Json.Serialization.JsonConverter<Xrpl.Models.Ledger.BaseLedgerEntry>.Read(ref System.Text.Json.Utf8JsonReader, System.Type, System.Text.Json.JsonSerializerOptions)
|
Edit this page
View Source
Write(Utf8JsonWriter, BaseLedgerEntry, JsonSerializerOptions)
Writes a BaseLedgerEntry to JSON.
Declaration
public override void Write(Utf8JsonWriter writer, BaseLedgerEntry value, JsonSerializerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| Utf8JsonWriter | writer | |
| BaseLedgerEntry | value | |
| JsonSerializerOptions | options |