asTypeOfOrNull
Deprecated
This feature has been deprecated. It is recommended to use Compose Multiplatform instead.
Converts a Bundle to T if is described by a SingleValueNavigationSpec matching the NavigationBundleSpecType.SerializedType with serializer either directly or wrapped by NavigationBundleSpecType.OptionalType.
Return
The T stored in the bundle or null if no such value was found.
Parameters
The KSerializer to deserialize T from the bundle.
Type Parameters
the type of serialized property stored in the bundle
Deprecated
This feature has been deprecated. It is recommended to use Compose Multiplatform instead.
Converts a Bundle to T if is described by a SingleValueNavigationSpec matching the NavigationBundleSpecType.SerializedType with serializer.
Return
The T stored in the bundle or null if no such value was found.
Parameters
The KSerializer to deserialize T from the bundle.
Type Parameters
the type of serialized property stored in the bundle