Class FlexibleTimeSpanConverter
Flexible converter for TimeSpan - supports strings
public class FlexibleTimeSpanConverter : JsonConverter<TimeSpan>
Inheritance
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)