JsonTaggedAdtEncoderWithConfig

Companion
object
trait AsObject[T]
trait AsRoot[T]
trait Encoder[T]
trait Serializable
class Object
trait Matchable
class Any

Value members

Inherited methods

final def apply(a: T): Json
Inherited from
AsObject
final def contramap[B](f: B => T): Encoder[B]

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Inherited from
Encoder
final def contramapObject[B](f: B => T): AsObject[B]

Create a new AsObject by applying a function to a value of type B before encoding as an A.

Create a new AsObject by applying a function to a value of type B before encoding as an A.

Inherited from
AsObject
def encodeObject(a: T): JsonObject

Convert a value to a JSON object.

Convert a value to a JSON object.

Inherited from
AsObject
final def mapJson(f: Json => Json): Encoder[T]

Create a new Encoder by applying a function to the output of this one.

Create a new Encoder by applying a function to the output of this one.

Inherited from
Encoder
final def mapJsonObject(f: JsonObject => JsonObject): AsObject[T]

Create a new AsObject by applying a function to the output of this one.

Create a new AsObject by applying a function to the output of this one.

Inherited from
AsObject