Show / Hide Table of Contents

Class StreamTypeListConverter

Inheritance
object
JsonConverter
JsonConverter<List<StreamType>>
StreamTypeListConverter
Namespace: Xrpl.Models.Enums
Assembly: Xrpl.dll
Syntax
public class StreamTypeListConverter : JsonConverter<List<StreamType>>

Methods

| Edit this page View Source

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads and converts the JSON to type List<StreamType>.

Declaration
public override List<StreamType> 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
List<StreamType>

The converted value.

Overrides
System.Text.Json.Serialization.JsonConverter<System.Collections.Generic.List<Xrpl.Models.StreamType>>.Read(ref System.Text.Json.Utf8JsonReader, System.Type, System.Text.Json.JsonSerializerOptions)
| Edit this page View Source

Write(Utf8JsonWriter, List<StreamType>, JsonSerializerOptions)

Writes a specified value as JSON.

Declaration
public override void Write(Utf8JsonWriter writer, List<StreamType> value, JsonSerializerOptions options)
Parameters
Type Name Description
Utf8JsonWriter writer

The writer to write to.

List<StreamType> value

The value to convert to JSON.

JsonSerializerOptions options

An object that specifies serialization options to use.

Overrides
JsonConverter<List<StreamType>>.Write(Utf8JsonWriter, List<StreamType>, JsonSerializerOptions)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX