Union

uk.gov.hmrc.play.json.Union
See theUnion companion object
class Union[A](typeField: String, readWith: PartialFunction[String, JsValue => JsResult[A]], writeWith: PartialFunction[A, JsObject])

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def and[B <: A](typeTag: String)(implicit ct: ClassTag[B], f: OFormat[B]): Union[A]
def andLazy[B <: A](typeTag: String, fmt: => OFormat[B])(implicit ct: ClassTag[B]): Union[A]
def andLazyType[B <: A](typeTag: String, fn: () => B)(implicit ct: ClassTag[B]): Union[A]
def andType[B <: A](typeTag: String, fn: () => B)(implicit tt: ClassTag[B]): Union[A]
def andValue(typeTag: String, value: A): Union[A]
def format: OFormat[A]