Table of Contents

Class RowConverter<T>

Namespace
DataStax.AstraDB.DataApi.SerDes
Assembly
DataStax.AstraDB.DataApi.dll

JSON converter for table row objects of type T, handling the mapping between .NET properties and the Data API row format, including support for column name attributes, vectorize columns, JSON string columns, and non-string-keyed dictionary columns.

public class RowConverter<T> : JsonConverter<T> where T : class

Type Parameters

T
Inheritance
RowConverter<T>
Inherited Members

Methods

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads and converts JSON to a T instance.

public override T Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Parameters

reader Utf8JsonReader
typeToConvert Type
options JsonSerializerOptions

Returns

T

Write(Utf8JsonWriter, T, JsonSerializerOptions)

Writes a T instance as JSON.

public override void Write(Utf8JsonWriter writer, T value, JsonSerializerOptions options)

Parameters

writer Utf8JsonWriter
value T
options JsonSerializerOptions