getJson method
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);
}