Genre.fromJson(Map jsonMap) genre = jsonMap['name'];我的问题是,我无法从JSON当我获得JSON并通过我的模型类传递它时,我得到以下错误:
I/flutter (10874): type 'List<dynamic>' is not a subtype of type 'List</em
谁能告诉我如何在flutter中解析对象数组的数组?当我解析json时,我得到的错误是type List<dynamic> is not a subtype of type Map<String, dynamic>.我正在尝试从API中获取要在屏幕上显示的数据,以便稍后构建一个GridView来显示所有产品及其各自的价格。我从flutter文档中复制了大部分代码:https:/