get method

HandledPaths? get(
  1. JsonPath? compareBasePath,
  2. JsonPath propertyPath
)

Gets a handled path. The basePath is what the caller thinks it's root path. All the paths in handled are intended to be relative, so, we'll ensure that the basePath matches, to prevent returning a false positive.

Implementation

HandledPaths? get(JsonPath? compareBasePath, JsonPath propertyPath) {
  compareBasePath ??= JsonPath.root();
  return this.basePath == compareBasePath ? handled[propertyPath] : null;
}