I am trying to Parcelize
a data class.
It contains one parameter :
var tokenType: Any? = null
For this variable compiler complains at compile time that :
Type is not directly supported by Parcelize.
Annotate the parameter with @RawValue if you want it to be serialized via
writeValue()
Though the error is self-explanatory, when I add @RawValue like this:
@RawValue var tokenType: Any? = null
it gives an error :
This annotation is not applicable to the target value parameter
Any hints on how to handle this?