{
"Filters": [{
"Decription": "Default",
"FieldSelected": {
"AppointmentDate": true,
"AppointmentDateOrder": 1
"ptStatusOrder": 3
},
"FilterID": 1
}, {
"Decription": "chart",
"FieldSelected": {
"AppointmentDate": true,
"AppointmentDateOrder": 1,
"ptStatusOrder": 0
},
"FilterID": 2
}]
}
I am getting a response of this structure, how do i map it to my POJO class. Can anyone give a sample POJO class for this json structure. I am using Gson for Request and Response.
ListofFilter.Filterin an object that has three attributesDescription,FilterId, and another object calledFieldSelected. Field selected can be treated as aMap. You may write a POJO forFieldSelectif wanted.FieldSelecthas three attrsAppointmentDate,AppointmentDateOrderandptStatusOrder