'how to implement or retrieve data from Rest API With Retrofit and json. which uses @field:SerializedName("what should it contain")
Solution 1:[1]
You have the structure wrong. You indicate that data is the list of phones, but it's not. It's an object with title, current_page, last_page and phones.
So you need to make another data class representing this data object. And correct that ListTeamResponse has this data object instead of a List<TeamResponse>
By the way, the field in @field:SerializedName is unnecessary, you can just use @SerializedName here
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Ivo Beckers |
