toJSON() {
    return this.toPlainObject();
  }
@return {!Object} The plain object form of the error. This is used by
    JSON.stringify() to return the stringified representation of the error.
@override