getAsDurationWithDefault method

Duration getAsDurationWithDefault (
  1. String key,
  2. Duration defaultValue
)
inherited

Converts map element into a Duration or returns default value if conversion is not possible.

  • key a key of element to get.
  • defaultValue the default value Returns Duration value of the element or default value if conversion is not supported.

See DurationConverter.toDurationWithDefault