Table of Contents

Class MailDocumentColourJsonConverter

Namespace
MailFathom.Application.EmailContent.Rendering.Document
Assembly
MailFathom.Application.dll

Serializes MailDocumentColour as the #rrggbb notation.

public sealed class MailDocumentColourJsonConverter : JsonConverter<MailDocumentColour>
Inheritance
MailDocumentColourJsonConverter
Inherited Members

Remarks

One string rather than three numbered members, because a colour is read by a person looking at a response as often as by a client, and three fields would be three chances for a client to compose them in the wrong order.

Methods

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads and converts the JSON to type MailDocumentColour.

Write(Utf8JsonWriter, MailDocumentColour, JsonSerializerOptions)

Writes a specified value as JSON.