1#include <nlohmann/json.hpp>
2
3#include "mtx/events/account_data/fully_read.hpp"
4
5namespace mtx {
6namespace events {
7namespace account_data {
8
9void
10from_json(const nlohmann::json &obj, FullyRead &content)
11{
12 content.event_id = obj.at(key: "event_id").get<std::string>();
13}
14
15void
16to_json(nlohmann::json &obj, const FullyRead &content)
17{
18 obj["event_id"] = content.event_id;
19}
20
21} // namespace state
22} // namespace events
23} // namespace mtx
24