getMap<T> method

Map<String, T>? getMap<T>(
  1. String key
)

Access a Map value.

Returns null if there is no such key or if it is not a Map.

Implementation

Map<String, T>? getMap<T>(String key) {
  if (get(key) is! Map) {
    return null;
  }

  return Map<String, T>.from(get(key));
}