AsObject

io.circe.Encoder.AsObject
See theAsObject companion trait
object AsObject

Utilities and instances for Encoder.AsObject.

Attributes

Companion
trait
Source
Encoder.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
AsObject.type

Members list

Value members

Concrete methods

final def apply[A](implicit instance: AsObject[A]): AsObject[A]

Return an instance for a given type.

Return an instance for a given type.

Attributes

Source
Encoder.scala
final def instance[A](f: A => JsonObject): AsObject[A]

Construct an instance from a function.

Construct an instance from a function.

Attributes

Source
Encoder.scala

Inherited methods

final inline def derived[A](using inline A: Of[A]): AsObject[A]

Attributes

Inherited from:
EncoderDerivation (hidden)
Source
Derivation.scala
final inline def derivedConfigured[A](using inline A: Of[A], inline configuration: Configuration): AsObject[A]

Attributes

Inherited from:
EncoderDerivation (hidden)
Source
Derivation.scala

Implicits

Implicits

Attributes

Source
Encoder.scala

Inherited implicits

final implicit def importedAsObjectEncoder[A](implicit exported: Exported[AsObject[A]]): AsObject[A]

Attributes

Inherited from:
LowPriorityAsObjectEncoders (hidden)
Source
Encoder.scala