-
Heiko Becker authored
That's what the README suggests and - more importantly - the cmake config file works with. Also use angle brackets instead of quotation marks in two cases.
Heiko Becker authoredThat's what the README suggests and - more importantly - the cmake config file works with. Also use angle brackets instead of quotation marks in two cases.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
aliases.cpp 438 B
#include <nlohmann/json.hpp>
using json = nlohmann::json;
#include "mtx/events/aliases.hpp"
namespace mtx {
namespace events {
namespace state {
void
from_json(const json &obj, Aliases &content)
{
content.aliases = obj.at("aliases").get<std::vector<std::string>>();
}
void
to_json(json &obj, const Aliases &content)
{
obj["aliases"] = content.aliases;
}
} // namespace state
} // namespace events
} // namespace mtx