I need to map this Json to recursive class, any idea?
[
{
"title": "home",
"icono": "assets/iconos/home.png",
"children": [
{
"title": "sub home 1",
"icono": "assets/iconos/home.png",
"children": [
{
"title": "sub home 2",
"icono": "assets/iconos/home.png",
"children": []
}
]
}
]
},
{
"title": "home",
"icono": "assets/iconos/home.png",
"children": []
}
]
class Entry {
Entry(this.title,this.icono,[this.children = const <Entry>[]]);
final String title;
final String icono;
final List<Entry> children;
}