#include "twitch-eventsub-ws/string.hpp" #include #include #include namespace chatterino::eventsub::lib { boost::json::result_for::type tag_invoke( boost::json::try_value_to_tag /*tag*/, const boost::json::value &jvRoot) { auto v = boost::json::try_value_to(jvRoot); if (v.has_error()) { return v.error(); } return String(std::move(v.value())); } } // namespace chatterino::eventsub::lib