Android, Jetpack Compose, Navigation, Type Safety, Kotlin.
builder function to hide the boilerplate: inline fun <reified T : Parcelable> parcelableType( isNullableAllowed: Boolean = false, json: Json = Json, ) = object : NavType<T>(isNullableAllowed = isNullableAllowed) { override fun get(bundle: Bundle, key: String) = if (Build.VERSION.SDK_INT >=