Class MailboxMutationLifecycleJsonConverter
- Namespace
- MailFathom.Domain.Mutations
- Assembly
- MailFathom.Domain.dll
Serializes MailboxMutationLifecycle as its name.
public sealed class MailboxMutationLifecycleJsonConverter : JsonConverter<MailboxMutationLifecycle>
- Inheritance
-
MailboxMutationLifecycleJsonConverter
- 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: the name is the published identity, and an ordinal would change meaning silently if the set were ever reordered.
Methods
- Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads and converts the JSON to type MailboxMutationLifecycle.
- ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads a dictionary key from a JSON property name.
- Write(Utf8JsonWriter, MailboxMutationLifecycle, JsonSerializerOptions)
Writes a specified value as JSON.
- WriteAsPropertyName(Utf8JsonWriter, MailboxMutationLifecycle, JsonSerializerOptions)
Writes a dictionary key as a JSON property name.