Class DataEncryptionPurposeJsonConverter
- Namespace
- MailFathom.Infrastructure.DataEncryption
- Assembly
- MailFathom.Infrastructure.dll
Serializes DataEncryptionPurpose as its published identity.
public sealed class DataEncryptionPurposeJsonConverter : JsonConverter<DataEncryptionPurpose>
- Inheritance
-
DataEncryptionPurposeJsonConverter
- 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 identity rather than an ordinal for the same reason the value object exists: the identity is what a sealed value already carries, and an ordinal would change meaning the moment the supported set were reordered.
Methods
- Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads and converts the JSON to type DataEncryptionPurpose.
- ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads a dictionary key from a JSON property name.
- Write(Utf8JsonWriter, DataEncryptionPurpose, JsonSerializerOptions)
Writes a specified value as JSON.
- WriteAsPropertyName(Utf8JsonWriter, DataEncryptionPurpose, JsonSerializerOptions)
Writes a dictionary key as a JSON property name.