I have a class:
public class PetModel{
    Serialized("cat")
    String cat;
    Serialized("dog")
    String dog;
    // getters and setters
}
when I do a POST using retrofit like so:
@FormUrlEncoded
@POST("/pet/{id}")
Pets postPets(@Path("id") String id,@Field("pets") ArrayList<PetModel> pets);
In the logs I see the request sending <package_name>.PetModel@cc49e70 instead of sending the values itself. What am I doing wrong?
 
     
     
    