Class EvmHashConverter
EVM Hash JSON Converter.
Inherited Members
Namespace: Hiero.Converters
Assembly: Hiero.dll
Syntax
public sealed class EvmHashConverter : JsonConverter<EvmHash>
Methods
| Edit this page View SourceRead(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads and converts the JSON to type EvmHash.
Declaration
public override EvmHash 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 |
|---|---|
| EvmHash | The converted value. |
Overrides
| Edit this page View SourceReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads a dictionary key from a JSON property name.
Declaration
public override EvmHash ReadAsPropertyName(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| Utf8JsonReader | reader | The Utf8JsonReader to read from. |
| Type | typeToConvert | The type to convert. |
| JsonSerializerOptions | options | The options to use when reading the value. |
Returns
| Type | Description |
|---|---|
| EvmHash | The value that was converted. |
Overrides
| Edit this page View SourceWrite(Utf8JsonWriter, EvmHash, JsonSerializerOptions)
Writes a specified value as JSON.
Declaration
public override void Write(Utf8JsonWriter writer, EvmHash hash, JsonSerializerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| Utf8JsonWriter | writer | The writer to write to. |
| EvmHash | hash | |
| JsonSerializerOptions | options | An object that specifies serialization options to use. |
Overrides
| Edit this page View SourceWriteAsPropertyName(Utf8JsonWriter, EvmHash, JsonSerializerOptions)
Writes a dictionary key as a JSON property name.
Declaration
public override void WriteAsPropertyName(Utf8JsonWriter writer, EvmHash value, JsonSerializerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| Utf8JsonWriter | writer | The Utf8JsonWriter to write to. |
| EvmHash | value | The value to convert. The value of HandleNull determines if the converter handles null values. |
| JsonSerializerOptions | options | The options to use when writing the value. |