Simple Custom Mapping Of Json Property To Object Property With Retrofit
What is the simplest way to define a custom mapping of a JSON property to a particular object property in RetroFit? Example JSON response for a set of 'rewards': [   {     'name' :
Solution 1:
try this:
class Reward {
    String name;
    String description;
    Asset assets;
    class Asset {
        String icon;
    }
}
Post a Comment for "Simple Custom Mapping Of Json Property To Object Property With Retrofit"