MappedOrFail

oxygen.json.JsonDecoder.MappedOrFail
final case class MappedOrFail[A, B](decoder: JsonDecoder[A], f: A => Either[String, 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

Concrete fields

override val onMissingFromObject: Option[B]