Table of Contents

Class MailRuleTriggerJsonConverter

Namespace
MailFathom.Application.Rules
Assembly
MailFathom.Application.dll

Serializes MailRuleTrigger as its name.

public sealed class MailRuleTriggerJsonConverter : JsonConverter<MailRuleTrigger>
Inheritance
MailRuleTriggerJsonConverter
Inherited Members

Remarks

The type carries this converter through JsonConverterAttribute, so every serializer that meets the value uses it without per-call registration. The JSON form is the name for the same reason the value object exists: it is the identity an operator already writes in a configuration file, and an ordinal would change meaning silently if the declared set were ever reordered.

Methods

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads and converts the JSON to type MailRuleTrigger.

ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads a dictionary key from a JSON property name.

Write(Utf8JsonWriter, MailRuleTrigger, JsonSerializerOptions)

Writes a specified value as JSON.

WriteAsPropertyName(Utf8JsonWriter, MailRuleTrigger, JsonSerializerOptions)

Writes a dictionary key as a JSON property name.