SerializationContext

class SerializationContext(val serializersModule: SerializersModule, val queryInputSerializers: Map<QueryInput<*>, KSerializer<IStepOutput<*>>> = emptyMap())

The output serializer of a query is context dependent when used by multiple QueryCallSteps. This class carries the correct serializer for the input of a query depending on from where it is called.

Constructors

Link copied to clipboard
constructor(serializersModule: SerializersModule, queryInputSerializers: Map<QueryInput<*>, KSerializer<IStepOutput<*>>> = emptyMap())

Properties

Link copied to clipboard
Link copied to clipboard
val serializersModule: SerializersModule

Functions

Link copied to clipboard
operator fun <T> plus(queryInputSerializer: Pair<QueryInput<T>, KSerializer<out IStepOutput<T>>>): SerializationContext
Link copied to clipboard
inline fun <T> serializer(): KSerializer<T>
fun serializer(type: KType): KSerializer<Any?>