forked from OpenGamers/abaddon
15 lines
410 B
C++
15 lines
410 B
C++
#include "role.hpp"
|
|
|
|
void from_json(const nlohmann::json &j, RoleData &m) {
|
|
JS_D("id", m.ID);
|
|
JS_D("name", m.Name);
|
|
JS_D("color", m.Color);
|
|
JS_D("hoist", m.IsHoisted);
|
|
JS_D("position", m.Position);
|
|
std::string tmp;
|
|
JS_D("permissions", tmp);
|
|
m.Permissions = static_cast<Permission>(std::stoull(tmp));
|
|
JS_D("managed", m.IsManaged);
|
|
JS_D("mentionable", m.IsMentionable);
|
|
}
|