getAsDurationWithDefault method
- String key,
- 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.