blob: adb4a1d2c0ddb8aa1e43e0e0b9db4bdc9291e33d [file]
#include "redfish_privileges_json.h"
#include <nlohmann/json.hpp>
#include "redfish_privileges.h"
namespace milotic::authz {
nlohmann::json::object_t RedfishPrivilegesToJson(
const RedfishPrivileges& privileges) {
nlohmann::json::object_t redfish_privileges_json;
redfish_privileges_json["Privilege"] = privileges.GetPrivileges();
return redfish_privileges_json;
}
} // namespace milotic::authz