You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
如果要解析列表就要添加类似这样的一个方法
static List fromJsonList(String jsonStr) {
List listJson = json.decode(jsonStr);
List list = List();
for (var item in listJson) {
list.add(AddressInfoModel.fromJson(item));
}
return list;
}
Activity
kamike commentedon Jun 5, 2020
如果要解析列表就要添加类似这样的一个方法
static List fromJsonList(String jsonStr) {
List listJson = json.decode(jsonStr);
List list = List();
for (var item in listJson) {
list.add(AddressInfoModel.fromJson(item));
}
return list;
}
debuggerx01 commentedon Jun 10, 2020
@kamike 是的,确实有问题,应该是之前某次更新影响产生的,有空我修复下,谢谢:-D
debuggerx01 commentedon Jul 29, 2020
Release 0.8
kamike commentedon Jul 30, 2020
666