Class FlexibleNullableTimeSpanConverter

Assembly: redb.Core.dll

Flexible converter for nullable TimeSpan

public class FlexibleNullableTimeSpanConverter : JsonConverter<TimeSpan?>

Inheritance

ObjectJsonConverterTimeSpan}}FlexibleNullableTimeSpanConverter

Methods

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads and converts the JSON to type .

public override TimeSpan? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Write(Utf8JsonWriter, TimeSpan?, JsonSerializerOptions)

Writes a specified value as JSON.

public override void Write(Utf8JsonWriter writer, TimeSpan? value, JsonSerializerOptions options)