Class GetBlockResult.GetBlockResultConverter
Inheritance
GetBlockResult.GetBlockResultConverter
Inherited Members
Namespace: Casper.Network.SDK.JsonRpc.ResultTypes
Assembly: Casper.Network.SDK.dll
Syntax
public class GetBlockResult.GetBlockResultConverter : JsonConverter<GetBlockResult>
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
| Edit this page View SourceRead(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads and converts the JSON to type GetBlockResult.
Declaration
public override GetBlockResult Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| Utf8JsonReader | reader | The reader. |
| Type | typeToConvert | The type to convert. |
| JsonSerializerOptions | options | An object that specifies serialization options to use. |
Returns
| Type | Description |
|---|---|
| GetBlockResult | The converted value. |
Overrides
| Edit this page View SourceWrite(Utf8JsonWriter, GetBlockResult, JsonSerializerOptions)
Writes a specified value as JSON.
Declaration
public override void Write(Utf8JsonWriter writer, GetBlockResult block, JsonSerializerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| Utf8JsonWriter | writer | The writer to write to. |
| GetBlockResult | block | |
| JsonSerializerOptions | options | An object that specifies serialization options to use. |