![]() |
Infohub JS API
|
Role aggregate (info, avatar, permissions, users).
Public Member Functions | |
| constructor (userRole=({})) | |
| getAvatar () | |
| setAvatar (avatar) | |
| setFromJSON (userRole=({})) | |
| toJSON () | |
Static Public Member Functions | |
| static | createFromJSON (userRole=({})) |
| constructor | ( | userRole = ({}) | ) |
|
static |
Create a user role from a JSON object.
| {object} | userRole - The JSON object |
| getAvatar | ( | ) |
Get the avatar of a role.
| setAvatar | ( | avatar | ) |
Set the avatar of a role.
| {string} | avatar - The avatar base64 string |
| setFromJSON | ( | userRole = ({}) | ) |
Set the user role from a JSON object.
| {object} | userRole - The JSON object |
| toJSON | ( | ) |
Convert the role to a JSON object.