@Override
  public Object serialize(final @NotNull Duration item, final @NotNull Predicate<Class<?>> typeSupported) {
    return item.toString();
  }
A serializer for the JDK {@link Duration} type.

<p>This will eventually be incorporated into upstream Configurate.</p>
serializer-configurate4/src/main/java/net/kyori/adventure/serializer/configurate4/DurationSerializer.java