getMap method

Map? getMap(
  1. String key
)

Get map value by key as map.

Implementation

Map<dynamic, dynamic>? getMap(String key) {
  if (!this.containsKey(key)) {
    return null;
  }

  if (this[key] is! Map) {
    return null;
  }

  return this[key];
}