getAsString method
Converts map element into a string or returns '' if conversion is not possible.
key
a key of element to get. Returns string value of the element or '' if conversion is not supported.
Implementation
String getAsString(key) {
return getAsStringWithDefault(key, '');
}