AndroidDev, Jetpack Compose.
NavType<SearchParameters>( isNullableAllowed = false ) { // See the custom NavType docs linked above for an //example of how to implement this } // Now use this in your destination composable<Search>( typeMap = mapOf(typeOf<SearchParameters>() to SearchParametersType) ) { backStackEntry -> val