encodeToBundle

@ExperimentalSerializationApi
inline fun <T> encodeToBundle(value: T, serializer: SerializationStrategy<T> = serializer()): Bundle

Encodes the given value to a Bundle using the provided serializer of type T.

Parameters

T

The type of the value to encode

value

The value to encode

serializer

The serializer to use