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