How can I define some generic decoder/encoder with circe?

后端 未结 0 805
醉话见心
醉话见心 2021-02-14 14:38

Suppose I have multiple types of ids defined as follows.

sealed trait Id {
  val value: String
}
case class IdA(value: String) extends Id
case class IdB(value: St         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题