def apply()

in src/main/scala/com/gu/contentapi/models/EditorsPick.scala [8:16]


  def apply(front: String, collections: JsArray): EditorsPick = {

    val first25ContentItemsFromAllCollections: Seq[JsValue] =
      collections.value
        .flatMap(c => (c \ "content").asOpt[JsArray].map(_.value))
        .flatten.take(25).toSeq

    EditorsPick(front, first25ContentItemsFromAllCollections)
  }