I am currently making a get request using volley and in onResponse i am trying to parse the jsonObject using gson to my model.
JSON Returned after the request is made:
i have a really easy approach for you:
first of all create the main model: and the other one for "data"
public class FeedBackModel {
int success;
String message;
DataModel data;
}
public class DataModel {
String company;
String email;
//etc ...
}
// create getter& setter for variables
then when you got json, parse it like this:
Gson gson = new Gson();
Type CollectionType = new TypeToken() {
}.getType();
FeedBackModel FeedBack = gson.fromJson(json, CollectionType);