Table of Contents

Class DocumentDictionaryConverter

Namespace
DataStax.AstraDB.DataApi.Collections
Assembly
DataStax.AstraDB.DataApi.dll

A custom JSON converter for the Document class.

public class DocumentDictionaryConverter : JsonConverter<Document>
Inheritance
DocumentDictionaryConverter
Inherited Members

Methods

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads and converts JSON to a Document instance.

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

Parameters

reader Utf8JsonReader
typeToConvert Type
options JsonSerializerOptions

Returns

Document

Write(Utf8JsonWriter, Document, JsonSerializerOptions)

Writes a Document instance as a JSON object.

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

Parameters

writer Utf8JsonWriter
value Document
options JsonSerializerOptions