child method

Node<Object?>? child(
  1. String key
)

Returns the JSON object child at the key if it exists, otherwise returns null.

Implementation

Node? child(String key) {
  final v = value;
  if (v is Map && v.containsKey(key)) return _child(v, key);
  return null;
}