kuzzle-sdk
Version:
Official Javascript SDK for Kuzzle
31 lines • 706 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.Role = void 0;
class Role {
/**
* @param {Kuzzle} kuzzle
* @param {Object} data
*/
constructor(kuzzle, _id = null, controllers = {}) {
Reflect.defineProperty(this, "_kuzzle", {
value: kuzzle,
});
this._id = _id;
this.controllers = controllers;
}
get kuzzle() {
return this._kuzzle;
}
/**
* Serialize the instance
*/
serialize() {
return {
_id: this._id,
controllers: this.controllers,
};
}
}
exports.Role = Role;
module.exports = { Role };
//# sourceMappingURL=Role.js.map
;