How to regenerate whole list to convert string(list) inside of the list into list format
List<Map<String, dynamic>> category = [
{
"name": "One",
"detail": "['1', '1', '1', '1', '1', '1']"
},
{
"name": "two",
"detail": "['2', '2', '2', '2', '2', '2']"
},
{
"name": "three",
"detail": "['3', '3', '3', '3', '3', '3']"
},
];
Become
List<Map<String, dynamic>> category = [
{
"name": "One",
"detail": ['1', '1', '1', '1', '1', '1']
},
{
"name": "two",
"detail": ['2', '2', '2', '2', '2', '2']
},
{
"name": "three",
"detail": ['3', '3', '3', '3', '3', '3']
},
];
How to regenerate whole list to convert string(list) inside of the list into list format