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