TimeOnlyJsonConverter Class

Serializes and deserializes TimeOnly values to and from JSON.

Definition

Namespace: MobileTrack.Common.Services.JsonConverters.Generics
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
internal sealed class TimeOnlyJsonConverter : JsonConverter<TimeOnly>
Inheritance
Object    JsonConverter    JsonConverterTimeOnly    TimeOnlyJsonConverter

Constructors

TimeOnlyJsonConverterInitializes a new instance of the TimeOnlyJsonConverter class

Methods

ReadReads and converts the JSON to type T.
(Overrides JsonConverterTRead(Utf8JsonReader, Type, JsonSerializerOptions))
WriteWrites a specified value as JSON.
(Overrides JsonConverterTWrite(Utf8JsonWriter, T, JsonSerializerOptions))

See Also