def create()

in src/main/scala/com/gu/contentapi/models/Notification.scala [35:43]


  def create(editorsPick: EditorsPick): Notification = {
    val id = editorsPick.front
    val itemType = "editors-picks"
    val item = Item(id, Json.toJson(editorsPick.contentItems))

    val notificationBody = NotificationBody(id, itemType = itemType, item = item)

    Notification(`type` = "indexable-editors-picks", body = notificationBody)
  }