jpath<T> method

T? jpath<T>(
  1. JsonPath<T> path, [
  2. T? value
])

Implementation

T? jpath<T>(JsonPath<T> path, [T? value]) {
  if (value != null) {
    setByPath(path, value);
    return value;
  } else {
    return getByPath(path) as T?;
  }
}