OptionDecoder

oxygen.json.JsonDecoder.OptionDecoder
final case class OptionDecoder[A](decoder: JsonDecoder[A]) extends JsonDecoder[Option[A]]

Attributes

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

Members list

Value members

Concrete methods

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

Attributes

Definition Classes

Inherited methods

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

Inherited from:
JsonDecoder
final def mapOrFail[B](f: Option[A] => 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[Option[A]]