I want to parse a JSON response to dart and I have used various online converts and plugins to do that but nothing is working. I need to display the list of the below data. please help.
{
"status": "success",
"message": "Data Found",
"data": {
"current_page": 1,
"data": [
{
"id": 61,
"name": "Goldy",
"photo": "/obituaries_files/images/Goldy_4e9ceb6b0b3eecc77006f6753e05c817_20220819025324.png",
"sunrise_date": "2022-06-15",
"sunset_date": "2022-07-12"
},
{
"id": 75,
"name": "Silver 10-0",
"photo": "/obituaries_files/images/Silver_10-0_d5cac8d7f67d675ca94a8face0ff47f0_20220720014910.gif",
"sunrise_date": "2022-06-15",
"sunset_date": "2022-07-20"
},
{
"id": 195,
"name": "John Martin",
"photo": "/obituaries_files/images/John_Martin_342d5bb70be0b6f25bf50a40fb088b5c_20220722013325.gif",
"sunrise_date": "1984-06-07",
"sunset_date": "2022-07-20"
},
{
"id": 200,
"name": "Tyson",
"photo": "/obituaries_files/images/New_30ef344d651f7127ebd1ee18a0592f22_20220721050721.jpeg",
"sunrise_date": "2022-07-12",
"sunset_date": "2022-07-21"
},
{
"id": 213,
"name": "Gold Fish",
"photo": "/obituaries_files/images/Gold_Fish_99af00a6905ed2c958371a3105d90c4e_20220721054534.jpeg",
"sunrise_date": "2022-06-15",
"sunset_date": "2022-07-13"
},
{
"id": 214,
"name": "Test",
"photo": "/obituaries_files/images/Test_fc1d82c1c421f049598edbb6ef1f8ae5_20220721055340.gif",
"sunrise_date": "2022-06-15",
"sunset_date": "2022-07-20"
},
{
"id": 220,
"name": "Anna Fritz",
"photo": "/obituaries_files/images/Anna_Fritz_0ef99c9e429775b87a4957ded8c6e78a_20220721060536.jpeg",
"sunrise_date": "2022-06-15",
"sunset_date": "2022-07-21"
},
{
"id": 250,
"name": "Silver",
"photo": "/obituaries_files/images/Silver_d7b5f795c65082e89bb8cca065622a7f_20220722011601.jpg",
"sunrise_date": "1967-07-12",
"sunset_date": "2022-06-16"
},
{
"id": 252,
"name": "Test",
"photo": "/obituaries_files/images/Test_a04809ee2e677a35b1f28479f852d46f_20220722012306.jpeg",
"sunrise_date": "2022-07-21",
"sunset_date": "2022-07-21"
},
{
"id": 254,
"name": "Basic",
"photo": "/obituaries_files/images/Basic_e28a078946c99b1c76e7abf5fee7c46f_20220722012922.gif",
"sunrise_date": "2022-07-13",
"sunset_date": "2022-07-13"
}
],
"first_page_url": "http://obituary.krescentglobal.com/api/get_obituaries_list?page=1",
"from": 1,
"last_page": 5,
"last_page_url": "http://obituary.krescentglobal.com/api/get_obituaries_list?page=5",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "http://obituary.krescentglobal.com/api/get_obituaries_list?page=1",
"label": "1",
"active": true
},
{
"url": "http://obituary.krescentglobal.com/api/get_obituaries_list?page=2",
"label": "2",
"active": false
},
{
"url": "http://obituary.krescentglobal.com/api/get_obituaries_list?page=3",
"label": "3",
"active": false
},
{
"url": "http://obituary.krescentglobal.com/api/get_obituaries_list?page=4",
"label": "4",
"active": false
},
{
"url": "http://obituary.krescentglobal.com/api/get_obituaries_list?page=5",
"label": "5",
"active": false
},
{
"url": "http://obituary.krescentglobal.com/api/get_obituaries_list?page=2",
"label": "Next »",
"active": false
}
],
"next_page_url": "http://obituary.krescentglobal.com/api/get_obituaries_list?page=2",
"path": "http://obituary.krescentglobal.com/api/get_obituaries_list",
"per_page": 10,
"prev_page_url": null,
"to": 10,
"total": 49
}
}