In retrofit to map json response to pojo usually we do this
@POST
Call getDataFromServer(@Url String url, @Body HashMap ha
My approach is make a POJO called ResponseData in which you will have an attribute Object, so you have:
@POST
Call getDataFromServer(@Url String url, @Body HashMap hashMap);
When you get the response you have to parse your response.body() to the desired class. So the pros: you just have one request, instead you have to parse the response.