Table of Contents

Class FilterConverter<T>

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

JSON converter for Filter<T>, serializing each filter as a single-property JSON object keyed by the filter's field name.

public class FilterConverter<T> : JsonConverter<Filter<T>>

Type Parameters

T
Inheritance
FilterConverter<T>
Inherited Members

Methods

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Not implemented — filter deserialization is not supported.

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

Parameters

reader Utf8JsonReader
typeToConvert Type
options JsonSerializerOptions

Returns

Filter<T>

Write(Utf8JsonWriter, Filter<T>, JsonSerializerOptions)

Writes a Filter<T> as a JSON object keyed by the filter's field name.

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

Parameters

writer Utf8JsonWriter
value Filter<T>
options JsonSerializerOptions