Get map value by key as map.
Map<dynamic, dynamic>? getMap(String key) { if (!this.containsKey(key)) { return null; } if (this[key] is! Map) { return null; } return this[key]; }