1 #include "lib/spotify/context.hpp" 2 from_json(const nlohmann::json & j,context & p)3 void lib::spt::from_json(const nlohmann::json &j, context &p) 4 { 5 if (!j.is_object()) 6 return; 7 8 j.at("uri").get_to(p.uri); 9 j.at("type").get_to(p.type); 10 } 11