getJson method

Json getJson(
  1. String key, [
  2. Object? defaultValue
])

Returns Json by key

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

Implementation

Json getJson(String key, [Object? defaultValue]) {
  return Json(_value(key, defaultValue), _onError);
}