byKey method
- 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'");
}
Get JsonNode by String key.
Throws SquintException if key is not found.
JsonNode byKey(String key) {
if (hasKey(key)) {
return data[key]!;
}
throw SquintException("JSON key not found: '$key'");
}