models.IssueKey.scala Maven / Gradle / Ivy
package io.gitlab.mateuszjaje.jiraclient
package models
import io.circe.{Decoder, Encoder}
case class IssueKey(value: String) extends AnyVal {
override def toString = value
}
object IssueKey {
implicit val encoder: Encoder[IssueKey] = Encoder.encodeString.contramap[IssueKey](_.value)
implicit val decoder: Decoder[IssueKey] = Decoder.decodeString.map(IssueKey(_))
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy