Skip to content
New issue

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

type 'List<dynamic>' is not a subtype of type 'List<Map<String, dynamic>>' in type cast #187

Closed
AlexV525 opened this issue Oct 25, 2019 · 3 comments

Comments

@AlexV525
Copy link
Contributor

Happened when running event poller.

final json = jsonDecode(response.body) as List<Map<String, dynamic>>;

Maybe change to final json = List<Map<String, dynamic>>.from(jsonDecode(response.body)); ? This one works fine.

@github-actions
Copy link

Thanks for submitting an issue! @robrbecker will take a look soon!

@robrbecker
Copy link
Member

I tested your suggestion and it works for me. I'll push up the fix.

@robrbecker
Copy link
Member

Fixed in 4aa3cf5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants