Android, Jetpack Compose, Navigation, Type Safety, Kotlin.
Book) { bundle.putParcelable(key, value) } } An essential point here is overriding the method serializeAsValue which has a default implementation in the NavType abstract class, hence it’s not mandatory to implement it. Without it, when navigating to the destination, the following exception will be