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