Casper.Network.SDK
Show / Hide Table of Contents

Class GetBlockResult.GetBlockResultConverter

Inheritance
object
JsonConverter
JsonConverter<GetBlockResult>
GetBlockResult.GetBlockResultConverter
Inherited Members
JsonConverter<GetBlockResult>.ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)
JsonConverter<GetBlockResult>.WriteAsPropertyName(Utf8JsonWriter, GetBlockResult, JsonSerializerOptions)
JsonConverter<GetBlockResult>.HandleNull
JsonConverter<GetBlockResult>.Type
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Casper.Network.SDK.JsonRpc.ResultTypes
Assembly: Casper.Network.SDK.dll
Syntax
public class GetBlockResult.GetBlockResultConverter : JsonConverter<GetBlockResult>

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
JsonConverter<GetBlockResult>.CanConvert(Type)
| Edit this page View Source

Read(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
JsonConverter<GetBlockResult>.Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
| Edit this page View Source

Write(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.

Overrides
JsonConverter<GetBlockResult>.Write(Utf8JsonWriter, GetBlockResult, JsonSerializerOptions)
  • Edit this page
  • View Source
In this article
Back to top Maintained by MAKE Technology LLC