KeyDecoder

io.circe.KeyDecoder
See theKeyDecoder companion object
trait KeyDecoder[A] extends Serializable

A type class that provides a conversion from a string used as a JSON key to a value of type A.

Attributes

Companion:
object
Source:
KeyDecoder.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Abstract methods

def apply(key: String): Option[A]

Attempt to convert a String to a value.

Attempt to convert a String to a value.

Attributes

Source:
KeyDecoder.scala

Concrete methods

final def flatMap[B](f: A => KeyDecoder[B]): KeyDecoder[B]

Construct an instance for type B from an instance for type A given a monadic function.

Construct an instance for type B from an instance for type A given a monadic function.

Attributes

Source:
KeyDecoder.scala
final def map[B](f: A => B): KeyDecoder[B]

Construct an instance for type B from an instance for type A.

Construct an instance for type B from an instance for type A.

Attributes

Source:
KeyDecoder.scala