getAsMap method

AnyValueMap getAsMap(
  1. String key
)

Converts map element into an AnyValueMap or returns empty AnyValueMap if conversion is not possible.

  • key a key of element to get. Returns AnyValueMap value of the element or empty AnyValueMap if conversion is not supported.

See fromValue

Implementation

AnyValueMap getAsMap(String key) {
  var value = get(key);
  return AnyValueMap.fromValue(value);
}