#include "model/Notifications.hpp" #include "core/JsonDecode.hpp" namespace dp { Notifications Notifications::fromJson(const Json& j) { using D = JsonDecode; Notifications n; n.groups = D::reqModels(j, "notification_groups"); n.nextCursor = D::optDate(j, "next_cursor"); return n; } } // namespace dp