of

open fun <T> of(clazz: Class<T>): Serde<T>

Deprecated (for removal)

Since version 2.0

Deprecated

Pass a Class to the context method requiring serialization/deserialization, instead of providing a serde using JacksonSerdes. This method will be removed in the next release.


open fun <T> of(mapper: ObjectMapper, clazz: Class<T>): Serde<T>

Deprecated (for removal)

Since version 2.0

Deprecated

Pass a Class to the context method requiring serialization/deserialization, instead of providing a serde using JacksonSerdes. If you need to customize the object mapper, look at JacksonSerdeFactory This method will be removed in the next release.


open fun <T> of(typeReference: TypeReference<T>): Serde<T>

Deprecated (for removal)

Since version 2.0

Deprecated

Pass a dev.restate.serde.TypeRef to the context method requiring serialization/deserialization, instead of providing a serde using JacksonSerdes. This method will be removed in the next release.


open fun <T> of(mapper: ObjectMapper, typeReference: TypeReference<T>): Serde<T>

Deprecated (for removal)

Since version 2.0

Deprecated

Pass a dev.restate.serde.TypeRef to the context method requiring serialization/deserialization, instead of providing a serde using JacksonSerdes. If you need to customize the object mapper, look at JacksonSerdeFactory This method will be removed in the next release.