Atul Gupta
03/27/2025, 7:19 PMHimanshu Joshi
03/28/2025, 7:47 AMArne Jans
03/28/2025, 9:14 AMHimanshu Joshi
03/28/2025, 9:16 AMStylianos Gakis
03/28/2025, 12:30 PMAtul Gupta
03/28/2025, 5:52 PMjava.lang.IllegalArgumentException: Cannot cast name of type Model to a NavType. Make sure to provide custom NavType for this argument.
My destination model is
@Serializable
data class Model(val id: String)
@Serializable
data class ParentModel(val id: String, val name: Model)
I think at internal fun SerialDescriptor.getNavType(): NavType<*>
there is no handling of Serializable
typeStylianos Gakis
03/28/2025, 6:01 PMAtul Gupta
03/28/2025, 8:10 PMModel
class as well, both are @Serializable
, also I didn't get what do you mean by typeMap
Stylianos Gakis
03/29/2025, 12:12 AMtypeMap
parameter