I checked with the back end team and they changed the JSON response like below:
{
"calendarEvents": [
{
"day": "20210503",
"list": [
{
"title": "Event 3",
"description": "Event 3"
}
]
},
{
"day": "20210504",
"list": [
{
"title": "Event 3",
"description": "Event 3"
},
{
"title": "Event 4",
"description": "Event 4"
}
]
},
{
"day": "20210505",
"list": [
{
"title": "Event 3",
"description": "Event 3"
},
{
"title": "Event 4",
"description": "Event 4"
},
{
"title": "Event 5",
"description": "Event 5"
}
]
}
]
}
Corressponding Model Class:
public class List
{
public string title { get; set; }
public string description { get; set; }
}
public class CalendarEvent
{
public string day { get; set; }
public List<List> list { get; set; }
}
public class Root
{
public List<CalendarEvent> calendarEvents { get; set; }
}
Now I am able to parse the data and show it on an expander.
Thanks @JarvanZhang