getAsNullableMap method
Converts map element into an AnyValueMap or returns null if conversion is not possible.
key
a key of element to get. Returns AnyValueMap value of the element or null if conversion is not supported.
See fromValue
Implementation
AnyValueMap? getAsNullableMap(String key) {
var value = get(key);
return value != null ? AnyValueMap.fromValue(value) : null;
}