Class LedgerBinaryConverter
LedgerEntity or LedgerBinaryEntity converter
Namespace: Xrpl.Client.Json.Converters
Assembly: Xrpl.dll
Syntax
public class LedgerBinaryConverter : JsonConverter<IBaseLedgerEntity>
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.IBaseLedgerEntity>.CanConvert(System.Type)
|
Edit this page
View Source
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
read LedgerEntity or LedgerBinaryEntity from json object
Declaration
public override IBaseLedgerEntity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| Utf8JsonReader | reader | json reader |
| Type | typeToConvert | target type |
| JsonSerializerOptions | options | json serializer options |
Returns
| Type | Description |
|---|---|
| IBaseLedgerEntity |
Overrides
System.Text.Json.Serialization.JsonConverter<Xrpl.Models.Ledger.IBaseLedgerEntity>.Read(ref System.Text.Json.Utf8JsonReader, System.Type, System.Text.Json.JsonSerializerOptions)
|
Edit this page
View Source
Write(Utf8JsonWriter, IBaseLedgerEntity, JsonSerializerOptions)
Writes a LedgerEntity or LedgerBinaryEntity to JSON. Null fields are ignored based on the serializer settings.
Declaration
public override void Write(Utf8JsonWriter writer, IBaseLedgerEntity value, JsonSerializerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| Utf8JsonWriter | writer | The JSON writer. |
| IBaseLedgerEntity | value | The LedgerEntity or LedgerBinaryEntity to serialize. |
| JsonSerializerOptions | options | The JSON serializer options. |