KotlinSerializationSerdeFactory

open class KotlinSerializationSerdeFactory @JvmOverloads constructor(json: Json = Json.Default, jsonSchemaFactory: KotlinSerializationSerdeFactory.JsonSchemaFactory = DefaultJsonSchemaFactory) : SerdeFactory

This class implements SerdeFactory using Kotlinx serialization stack.

If you want to customize the Json object used in your service, it is recommended to subclass this class, and then register it using the dev.restate.sdk.annotation.CustomSerdeFactory annotation.

Constructors

Link copied to clipboard
constructor(json: Json = Json.Default, jsonSchemaFactory: KotlinSerializationSerdeFactory.JsonSchemaFactory = DefaultJsonSchemaFactory)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Factory to generate json schemas.

Functions

Link copied to clipboard
open override fun <T> create(typeRef: TypeRef<T>): Serde<T>
open override fun <T> create(typeTag: TypeTag<T>): Serde<T>
open override fun <T> create(clazz: Class<T>): Serde<T>