duration static method

PrimitiveSerializer<Duration> duration([
  1. Serializer<Duration>? serializer
])

Implementation

static PrimitiveSerializer<Duration> duration([Serializer<Duration>? serializer]) =>
    _StringDurationSerializer(serializer);