Consider the following json:
[
{
"id": 1
"name": "foo"
},
{
"id": 1
"name": "foo"
}
]
I am trying to parse this using json_serializable library.
json.decode(response.body) returns List<dynamic>.
but the json_serializable auto-generates methods fromJson and toJson with type Map<String, dynamic json>.
is there any way in json_serializable to parse List<dynamic> with auto-generated methods and not manually?