Package-level declarations

Functions

inline fun <T : Any> KotlinxBackwardCompatibleSessionSerializer(serializersModule: SerializersModule = EmptySerializersModule()): SessionSerializer<T>
fun <T : Any> KotlinxBackwardCompatibleSessionSerializer(serializer: KSerializer<T>, serializersModule: SerializersModule = EmptySerializersModule()): SessionSerializer<T>

Returns a SessionSerializer based on kotlinx.serialization library that is backward compatible with previous default serializer. In general, it's discouraged to use this format, and it's recommended to migrate your sessions to another format, such as JSON

Link copied to clipboard
inline fun <T : Any> KotlinxSessionSerializer(format: StringFormat): SessionSerializer<T>
fun <T : Any> KotlinxSessionSerializer(serializer: KSerializer<T>, format: StringFormat): SessionSerializer<T>

Returns a SessionSerializer based on kotlinx.serialization library.