has method

bool has(
  1. String key
)

Check if the key exists in the JSON object.

Implementation

bool has(String key) {
  return getObjectFromPath().containsKey(key);
}