UNPKG

kuzzle-sdk

Version:
31 lines 706 B
"use strict"; 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