Get map value by key as string.
String? getString(String key) { if (!this.containsKey(key)) { return null; } if (this[key] is! String) { return null; } return this[key]; }