getMap method

Map getMap(
  1. String key
)

Reads a key value of List type from Map.

If value is NULL or not List type return default value defaultString

Implementation

// ignore: always_specify_types
Map getMap(String key) {
  if (containsKey(key)) {
    if (this[key] is Map) {
      return this[key] ?? defaultMap;
    }
  }
  errorLogsNS("Map.getMap[$key] has incorrect data :  ${this[key]}");
  return defaultMap;
}