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