override def writes()

in registration/app/registration/models/LegacyRegistration.scala [26:61]


    override def writes(o: LegacyTopic): JsValue = writer.writes(o)
  }
}

case class LegacyTopic(
  `type`: String,
  name: String
) {
  def toTopicString: String = `type` + "//" + name
}

case class LegacyDevice(
  platform: String,
  pushToken: Option[String],
  firebaseToken: Option[String],
  buildTier: String
)
object LegacyDevice {
  implicit val jf: OFormat[LegacyDevice] = Json.format[LegacyDevice]
}

case class LegacyMatch(matchId: String, matchDate: String)
object LegacyMatch {
  implicit val jf: OFormat[LegacyMatch] = Json.format[LegacyMatch]
}

case class LegacyPreferences(
  receiveNewsAlerts: Boolean,
  edition: String,
  teams: Option[Seq[String]],
  matches: Option[Seq[LegacyMatch]],
  topics: Option[Seq[LegacyTopic]],
  provider: Option[Provider]
) {
  def hasNewsstand: Boolean = topics.exists(_.contains(LegacyTopic.NewsstandIos))
  def withNewsstand: LegacyPreferences = {