Returns the value at key when it is a Map, otherwise defaultValue.
key
Map
defaultValue
static Map? getMap(Map map, String key, [Map? defaultValue]) { final v = get(map, key); return v is Map ? v : defaultValue; }