Class MailFathomPermissionJsonConverter
- Namespace
- MailFathom.Domain.Access
- Assembly
- MailFathom.Domain.dll
Serializes MailFathomPermission as its published name.
public sealed class MailFathomPermissionJsonConverter : JsonConverter<MailFathomPermission>
- Inheritance
-
MailFathomPermissionJsonConverter
- 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 published name for the same reason the value object exists: it is the identity an operator, a metadata document, and an authorization server already agree on, while an ordinal would silently change meaning the first time the set gained a member.
Methods
- Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads and converts the JSON to type MailFathomPermission.
- ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads a dictionary key from a JSON property name.
- Write(Utf8JsonWriter, MailFathomPermission, JsonSerializerOptions)
Writes a specified value as JSON.
- WriteAsPropertyName(Utf8JsonWriter, MailFathomPermission, JsonSerializerOptions)
Writes a dictionary key as a JSON property name.