OrElse

oxygen.json.JsonDecoder.OrElse
final case class OrElse[A, B >: A](a: JsonDecoder[A], b: JsonDecoder[B]) extends JsonDecoder[B]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait JsonDecoder[B]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def decodeJsonAST(ast: Json): Either[JsonError, B]

Attributes

Definition Classes

Inherited methods

final def <>[B >: B](that: JsonDecoder[B]): JsonDecoder[B]

Attributes

Inherited from:
JsonDecoder
final def decodeJsonString(string: String): Either[JsonError, B]

Attributes

Inherited from:
JsonDecoder
final def map[B](f: B => B): JsonDecoder[B]

Attributes

Inherited from:
JsonDecoder
final def mapAttempt[B](f: B => B)(using typeTag: TypeTag[B]): JsonDecoder[B]

Attributes

Inherited from:
JsonDecoder
final def mapJsonInput(f: PartialFunction[Json, Json]): JsonDecoder[B]

Attributes

Inherited from:
JsonDecoder
final def mapOrFail[B](f: B => Either[String, B]): JsonDecoder[B]

Attributes

Inherited from:
JsonDecoder
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Inherited fields

val onMissingFromObject: Option[B]

Attributes

Inherited from:
JsonDecoder