1 2 3 4 5 6 7 8 9 10 11 12 13 14
package xyz.driver.pdsuicommon.domain import xyz.driver.pdsuicommon.logging._ final case class TextJson[+T](content: T) { def map[U](f: T => U): TextJson[U] = copy(f(content)) } object TextJson { implicit def toPhiString[T](x: TextJson[T])(implicit inner: T => PhiString): PhiString = { phi"TextJson(${x.content})" } }