I'm testing/creating a REST client to the new Basecamp API using Retrofit. It looks something like this:
class Project {
String name;
String appUrl;
}
interface Basecamp {
@GET("/projects.json")
List<Project> projects();
}
In the json response, the source field for appUrl
is called app_url
. Asides from renaming the field in the class, is there a simple way to map the response data with my data structure?