path<X> method

  1. @override
X? path<X>(
  1. JsonPath<X> path, [
  2. Attribute<X>? attr
])
override

Uses the type from the JsonPath

Implementation

@override
X? path<X>(JsonPath<X> path, [Attribute<X>? attr]) {
  if (attr == null) {
    return _get(path) as X?;
  } else {
    _set(path, attr.value);
    _changeStream.add(attr);
    return attr.value;
  }
}