serialize () {
    return {
      value: this.getValue(),
      path: this.getPath()
    }
  }
@typedef {{value: String|Object|Number|Boolean, path: Array.<String|Number>}} SerializableNode

Returns serializable representation for the node
@return {SerializableNode}