#include "mtx/identifiers.hpp" #include namespace mtx { namespace identifiers { void from_json(const nlohmann::json &obj, User &user) { user = parse(obj.get()); } void to_json(nlohmann::json &obj, const User &user) { obj = user.to_string(); } void from_json(const nlohmann::json &obj, Room &room) { room = parse(obj.get()); } void to_json(nlohmann::json &obj, const Room &room) { obj = room.to_string(); } void from_json(const nlohmann::json &obj, Event &event) { event = parse(obj.get()); } void to_json(nlohmann::json &obj, const Event &event) { obj = event.to_string(); } } }