byKey method

JsonNode byKey(
  1. String key
)

Get JsonNode by String key.

Throws SquintException if key is not found.

Implementation

JsonNode byKey(String key) {
  if (hasKey(key)) {
    return data[key]!;
  }
  throw SquintException("JSON key not found: '$key'");
}