-
Nicolas Werner authoredNicolas Werner authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
tombstone.cpp 547 B
#include <nlohmann/json.hpp>
using json = nlohmann::json;
#include "mtx/events/tombstone.hpp"
namespace mtx {
namespace events {
namespace state {
void
from_json(const json &obj, Tombstone &content)
{
content.body = obj.at("body");
content.replacement_room = obj.at("replacement_room");
}
void
to_json(json &obj, const Tombstone &content)
{
obj["body"] = content.body;
obj["replacement_room"] = content.replacement_room;
}
} // namespace state
} // namespace events
} // namespace mtx