Skip to content

Commit

Permalink
Explicit type declaration for implicits
Browse files Browse the repository at this point in the history
  • Loading branch information
rtyley committed Jan 31, 2024
1 parent cdef67f commit 3a13d5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/model/transcoder/JobStatus.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package model.transcoder

import ai.x.play.json.Encoders.encoder
import ai.x.play.json.Jsonx
import play.api.libs.json.Format

case class JobStatus(key: String, status: String, statusDetail: Option[String])

object JobStatus {
implicit val jobStatusFormat = Jsonx.formatCaseClass[JobStatus]
implicit val jobStatusFormat: Format[JobStatus] = Jsonx.formatCaseClass[JobStatus]
}

0 comments on commit 3a13d5b

Please sign in to comment.