getChild method

Json getChild(
  1. String key
)

Implementation

Json getChild(String key){
  if (!containsKey(key)) {
    throw Exception("json.getChild($key). No key");
  }
  final value = this[key];
  if (value is Json) return value;
  throw Exception("value $key is not a json object");
}