putSerializable

inline fun <T : @Serializable Any> Boomerang.putSerializable(key: String, value: T)(source)

Extension function for Boomerang that adds a serializable object of type T with the specified key.

This function serializes the object using Kotlinx Serialization before adding it to the Boomerang.

Parameters

T

The type of serializable object to add

key

The unique identifier for the stored value

value

The serializable object to add