def fromString()

in common/src/main/scala/models/TopicType.scala [27:40]


  def fromString(s: String): Option[TopicType] = PartialFunction.condOpt(s) {
    case "breaking" => Breaking
    case "content" => Content
    case "tag-contributor" => TagContributor
    case "tag-keyword" => TagKeyword
    case "tag-series" => TagSeries
    case "tag-blog" => TagBlog
    case "football-team" => FootballTeam
    case "football-match" => FootballMatch
    case "newsstand" => TopicTypes.Newsstand
    case "newsstand-shard" => TopicTypes.NewsstandShard
    case "live-notification" => LiveNotification
    case "editions" => Editions
  }