Show / Hide Table of Contents

Class EndorsementConverter

Endorsement JSON Converter

Inheritance
object
JsonConverter
JsonConverter<Endorsement>
EndorsementConverter
Inherited Members
JsonConverter<Endorsement>.CanConvert(Type)
JsonConverter<Endorsement>.ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)
JsonConverter<Endorsement>.WriteAsPropertyName(Utf8JsonWriter, Endorsement, JsonSerializerOptions)
JsonConverter<Endorsement>.HandleNull
JsonConverter<Endorsement>.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 EndorsementConverter : JsonConverter<Endorsement>

Methods

| Edit this page View Source

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads and converts the JSON to type Endorsement.

Declaration
public override Endorsement 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
Endorsement

The converted value.

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

Write(Utf8JsonWriter, Endorsement, JsonSerializerOptions)

Writes a specified value as JSON.

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

The writer to write to.

Endorsement endorsement
JsonSerializerOptions options

An object that specifies serialization options to use.

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