getAsMap method
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