getMap method

JsonMap getMap(
  1. String key, [
  2. Map<String, dynamic>? defaultValue
])

Returns JsonMap by key

If map not contains key or the value has a different type and defaultValue is null then throw FormatException

Implementation

JsonMap getMap(String key, [Map<String, dynamic>? defaultValue]) {
  return JsonMap(_value<Map<String, dynamic>>(key, defaultValue), _onError);
}