Class WriteOnlyDocumentConverter
- Namespace
- JsonApiDotNetCore.Serialization.JsonConverters
- Assembly
- JsonApiDotNetCore.dll
Converts Document to JSON.
[UsedImplicitly(ImplicitUseKindFlags.InstantiatedNoFixedConstructorSignature)]
public sealed class WriteOnlyDocumentConverter : JsonObjectConverter<Document>
- Inheritance
-
WriteOnlyDocumentConverter
- Inherited Members
Methods
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Always throws a NotSupportedException. This converter is write-only.
public override Document Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
reader
Utf8JsonReadertypeToConvert
Typeoptions
JsonSerializerOptions
Returns
Write(Utf8JsonWriter, Document, JsonSerializerOptions)
public override void Write(Utf8JsonWriter writer, Document value, JsonSerializerOptions options)
Parameters
writer
Utf8JsonWritervalue
Documentoptions
JsonSerializerOptions