Class ParticipationPublicKeyConverterJson
Inherited Members
JsonConverter.CanRead
JsonConverter.CanWrite
Namespace: Algorand.Algod.Model.Converters.Json
Assembly: Algorand.dll
Syntax
public class ParticipationPublicKeyConverterJson : JsonConverter<ParticipationPublicKey>
Methods
| Edit this page View SourceReadJson(JsonReader, Type, ParticipationPublicKey, bool, JsonSerializer)
Reads the JSON representation of the object.
Declaration
public override ParticipationPublicKey ReadJson(JsonReader reader, Type objectType, ParticipationPublicKey existingValue, bool hasExistingValue, JsonSerializer serializer)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonReader | reader | The Newtonsoft.Json.JsonReader to read from. |
| Type | objectType | Type of the object. |
| ParticipationPublicKey | existingValue | The existing value of object being read. If there is no existing value then |
| bool | hasExistingValue | The existing value has a value. |
| JsonSerializer | serializer | The calling serializer. |
Returns
| Type | Description |
|---|---|
| ParticipationPublicKey | The object value. |
Overrides
| Edit this page View SourceWriteJson(JsonWriter, ParticipationPublicKey, JsonSerializer)
Writes the JSON representation of the object.
Declaration
public override void WriteJson(JsonWriter writer, ParticipationPublicKey value, JsonSerializer serializer)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonWriter | writer | The Newtonsoft.Json.JsonWriter to write to. |
| ParticipationPublicKey | value | The value. |
| JsonSerializer | serializer | The calling serializer. |