decodeFromBundle

@ExperimentalSerializationApi
inline fun <T> decodeFromBundle(bundle: Bundle, deserializer: DeserializationStrategy<T> = serializer()): T

Decodes a value from the given bundle using the provided deserializer of type T.

Parameters

T

The type of the value to decode

bundle

The bundle to decode from

deserializer

The deserializer to use