getAsDateTime method
Converts map element into a DateTime or returns the current date if conversion is not possible.
key
a key of element to get. Returns DateTime value of the element or the current date if conversion is not supported.
Implementation
DateTime getAsDateTime(String key) {
return getAsDateTimeWithDefault(key, DateTime.now().toUtc());
}