Show / Hide Table of Contents

Class ConsensusNodeEndpointConverter

Consensus Node ConsensusNodeEndpoint JSON Converter

Inheritance
object
JsonConverter
JsonConverter<ConsensusNodeEndpoint>
ConsensusNodeEndpointConverter
Inherited Members
JsonConverter<ConsensusNodeEndpoint>.CanConvert(Type)
JsonConverter<ConsensusNodeEndpoint>.ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)
JsonConverter<ConsensusNodeEndpoint>.WriteAsPropertyName(Utf8JsonWriter, ConsensusNodeEndpoint, JsonSerializerOptions)
JsonConverter<ConsensusNodeEndpoint>.HandleNull
JsonConverter<ConsensusNodeEndpoint>.Type
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Hiero.Converters
Assembly: Hiero.dll
Syntax
public sealed class ConsensusNodeEndpointConverter : JsonConverter<ConsensusNodeEndpoint>

Methods

| Edit this page View Source

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads and converts the JSON to type ConsensusNodeEndpoint.

Declaration
public override ConsensusNodeEndpoint? 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
ConsensusNodeEndpoint

The converted value.

Overrides
JsonConverter<ConsensusNodeEndpoint>.Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
| Edit this page View Source

Write(Utf8JsonWriter, ConsensusNodeEndpoint, JsonSerializerOptions)

Writes a specified value as JSON.

Declaration
public override void Write(Utf8JsonWriter writer, ConsensusNodeEndpoint gateway, JsonSerializerOptions options)
Parameters
Type Name Description
Utf8JsonWriter writer

The writer to write to.

ConsensusNodeEndpoint gateway
JsonSerializerOptions options

An object that specifies serialization options to use.

Overrides
JsonConverter<ConsensusNodeEndpoint>.Write(Utf8JsonWriter, ConsensusNodeEndpoint, JsonSerializerOptions)
  • Edit this page
  • View Source
In this article
Back to top .NET Client Library for Hiero Network and Hedera Hashgraph