Table of Contents

Class PresentationTextJsonConverter

Namespace
MailFathom.Application.Discovery.Presentation
Assembly
MailFathom.Application.dll

Serializes PresentationText as the plain string it holds.

public sealed class PresentationTextJsonConverter : JsonConverter<PresentationText>
Inheritance
PresentationTextJsonConverter
Inherited Members

Remarks

The type carries this converter through JsonConverterAttribute, so a plan read off the wire is validated by the same rules that hold for one composed in process — which is the point of putting the rules on the value rather than on whatever produced it.

Methods

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads and converts the JSON to type PresentationText.

ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads a dictionary key from a JSON property name.

Write(Utf8JsonWriter, PresentationText, JsonSerializerOptions)

Writes a specified value as JSON.

WriteAsPropertyName(Utf8JsonWriter, PresentationText, JsonSerializerOptions)

Writes a dictionary key as a JSON property name.