getAsDuration method
inherited
Converts map element into a Duration or returns the current date if conversion is not possible.
key
a key of element to get. Returns Duration value of the element or the current date if conversion is not supported.