Class MailRuleFactJsonConverter
- Namespace
- MailFathom.Application.Rules.Facts
- Assembly
- MailFathom.Application.dll
Serializes MailRuleFact as the name a condition refers to it by.
public sealed class MailRuleFactJsonConverter : JsonConverter<MailRuleFact>
- Inheritance
-
MailRuleFactJsonConverter
- 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 authoring name for the same reason the value object exists: it is the identity the documentation, the configuration file, and the type checker already agree on, while an ordinal position would silently change meaning if the declared set were ever reordered.
Methods
- Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads and converts the JSON to type MailRuleFact.
- ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads a dictionary key from a JSON property name.
- Write(Utf8JsonWriter, MailRuleFact, JsonSerializerOptions)
Writes a specified value as JSON.
- WriteAsPropertyName(Utf8JsonWriter, MailRuleFact, JsonSerializerOptions)
Writes a dictionary key as a JSON property name.