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
readerUtf8JsonReadertypeToConvertTypeoptionsJsonSerializerOptions
Returns
Write(Utf8JsonWriter, Document, JsonSerializerOptions)
Writes a Document instance as a JSON object.
public override void Write(Utf8JsonWriter writer, Document value, JsonSerializerOptions options)
Parameters
writerUtf8JsonWritervalueDocumentoptionsJsonSerializerOptions