3 ms·
I use Parceler (https://github.com/johncarl81/parceler https://github.com/johncarl81/parceler) with gson. So gson for network data, then parceler for passing pa
by makeramen 12y ago
I use Parceler (https://github.com/johncarl81/parceler https://github.com/johncarl81/parceler) with gson. So gson for network data, then parceler for passing parcels around between activities/fragments.
- zackb 12y agoDoesn't this require annotating the class? What if I can't change the class implementation?
- johncarl81 12y agoOne way to use Parceler is to annotate the class. There are a lot of other options though, including configuring the class outside of the class using @ParcelClass (useful for libraries) or writing a ParcelConverter.