Android, Jetpack Compose, Navigation, Type Safety, Kotlin.
String = json.encodeToString(value) override fun put(bundle: Bundle, key: String, value: T) { bundle.putString(key, json.encodeToString(value)) } } Again, just replace use it in the navigation component: composable<BookDetail>( typeMap = mapOf(typeOf<Book>() to serializableType<Book>()) ) { ... We