Android, Jetpack Compose, Android App Development, Mobile App Development, Programming.
class Routes { @Serializable data object FirstScreen : Routes() @Serializable data class SecondScreen(val screenInfo: ScreenInfo) : Routes() } The important difference is that we need to add @Parcelize annotation and extend the class with Parcelable at the same time. Afterwards, the composable