#pragma once #include #include #include #include #include struct Images { std::optional original; std::vector thumbnails; const std::string& original_or_thumbnail() const; const std::string& thumbnail_or_original() const; }; struct User { std::string username; std::string display_name; uint64_t user_id; std::optional cover_images; Images profile_pictures; std::vector> links; }; void from_json(const nlohmann::json& j, User& user);