Daniele B
05/17/2021, 12:05 PM@Serializable
?
interface ScreenParams
@Serializable
data class CountriesListParams(val listType: CountriesListType) : ScreenParams
@Serializable
data class CountryDetailParams(val countryName: String) : ScreenParams
all these 3 definitions are on different files, so it can happen to forget to set @Serializable
If the annotation is forgotten, the app would crash at runtime when visiting that specific screen.sandwwraith
05/17/2021, 3:06 PMDaniele B
05/17/2021, 5:29 PM