Android, Jetpack Compose, Android App Development, Mobile App Development, Programming.
value) override fun serializeAsValue(value: T): String = Json.encodeToString(serializer, value) override val name: String = clazz.name } With this class in hand, you can convert data classes to NavTypes with easier and less boilerplate code: composable<Routes.SecondScreen>( typeMap =