我是flutter的新手,我不得不在Android中解析相同的JSON响应,但我不知道如何在Flutter中解析JSON。因为,我可以在控制台中打印响应,但不知道如何创建模型类。下面是我可以获取和打印JSON响应的函数。print(shop_cat);
loading = false;} Here i
,我无法从JSON中正确地解析这个类型。当我获得JSON并通过我的模型类传递它时,我得到以下错误:
I/flutter (10874): type 'List<dynamic>' is not a subtype of type 'List<I/flutter (10874): Genre is from package:flutter_app_first/models&