Skip to content
Repos

DevPlaceApp

C++ 335 B15 lines Opens in site

Directory Raw Download

#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<NotificationGroup>(j, "notification_groups");
  n.nextCursor = D::optDate(j, "next_cursor");
  return n;
}

}  // namespace dp
20.4ms