static fromJSON(json) {
    var permission = new this();
    permission.fromJSON(json);
    return permission;
  }
/**
   * Creates a permission from the given rules.
   * @param {json} json The rules.
   * @return {util.Permission} The permission.
   */
Creates a permission from the given rules.
@param {json} json The rules.
Creates a permission from the given rules . @param { json } json The rules .
static fromJSON(json) {
    var permission = new this();
    permission.fromJSON(json);
    return permission;
  }
static fromJSON ( json ) { var permission = new this ( ) ; permission . fromJSON ( json ) ; return permission ; }
Creates a permission from the given rules.
Creates a permission from the given rules .