I am facing a strange error in flutter. I am using json serialisable.
Here is my code
class DivMatches{
final List<Match> matches;
DivMatches(this.matches);
factory DivMatches.fromJson(Map<String, dynamic> json) =>
_$DivMatchesFromJson(json);
Map<String, dynamic> toJson() => _$DivMatchesToJson(this);
}
My web api sends data like this
[
[
{..},
{..},
{..},
{..}
],
[...],
[...],
[...],
[...],
[...],
[...]
]
It's array of array.
Code that is generating error is
data = body.map((el) => DivMatches.fromJson(el)).toList();
error it gives
Exception has occurred.
_TypeError (type 'List<dynamic>' is not a subtype of type 'Map<String, dynamic>')
JSON DATA here is the screenshots of json data formate

