def from()

in src/main/scala/ophan/google/index/checker/model/ContentSummary.scala [56:59]


  def from(content: Content): Option[ContentSummary] = for {
    fields <- content.fields
    firstPublished <- fields.firstPublicationDate
  } yield ContentSummary(content.id, Instant.ofEpochMilli(firstPublished.dateTime), URI.create(content.webUrl), content.webTitle)