We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如题:这是为何?
The text was updated successfully, but these errors were encountered:
model/company.dart 文件中,下面的fromJson的参数,由之前的json改为jsonStr 因为是json.decode, 而不是JSON.decode
static List fromJson(String jsonStr) { return json .decode(jsonStr)['list'] .map((obj) => Company.fromMap(obj)) .toList(); }
Sorry, something went wrong.
新版是 return jsonDecode(json)['list'] .map((obj) => Message.fromMap(obj)) .toList();
return jsonDecode(json)['list'] .map((obj) => Message.fromMap(obj)) .toList();
No branches or pull requests
如题:这是为何?
The text was updated successfully, but these errors were encountered: