getSDMap method

Map<String, dynamic> getSDMap(
  1. String key
)

Reads a key value of Map<String, dynamic> type from Map.

If value is NULL or not Map<String, dynamic> type return default value defaultSDMap

Implementation

Map<String, dynamic> getSDMap(String key) {
  if (containsKey(key)) {
    if (this[key] is Map) {
      return this[key] ?? defaultSDMap;
    }
  }
  errorLogsNS("Map.getMap[$key] has incorrect data :  ${this[key]}");
  return defaultSDMap;
}