Does anybody know if it’s possible to extend `@Par...
# android
g
Does anybody know if it’s possible to extend
@Parcelize
? I mean, I want to easily parcel
com.google.gson.JsonObject
, but it can’t be marshalled via simply
@RawValue
. I wanted to add a piece of code that translates it into
String
than back to
JsonObject
so that I can use
@Parcelize
with it. I can’t translate it into an specific class because it’s a dynamic field.
I would like to add to the question if anybody knows wether or not
Moshi
or
kotlinx.serialize
has this kind of integration with a more out-of-the-box solution
There is a solution which is to register a
Parceler<>
object