eitherToJsonValue

given eitherToJsonValue[A, B, M <: ([A, B] =>> Either[A, B])](using val left: JsonOutput[A])(using val right: JsonOutput[B]): JsonOutput[M[A, B]]

Converts Right to JsonValue using right converter or converts Left using left.

Value members

Concrete methods

def apply(value: M[A, B]): JsonValue

Converts to JSON value.

Converts to JSON value.

Inherited methods

@unspecialized
def andThen[A](g: JsonValue => A): M[A, B] => A
Inherited from
Function1
@unspecialized
def compose[A](g: A => M[A, B]): A => JsonValue
Inherited from
Function1
override def toString(): String
Definition Classes
Function1 -> Any
Inherited from
Function1

Concrete fields

protected val left: JsonOutput[A]
protected val right: JsonOutput[B]

Extensions

Inherited extensions

extension (x: T)

x.convert converts a value x of type T to type U

x.convert converts a value x of type T to type U

Inherited from
Conversion