Skip to content
RED SAG Skills
hardStudy question · answer published in Flutter interview questions, so no pointscross-platform-mobiledartjson

List<dynamic> is not a List<String>

Decoding `{"tags": ["a", "b"]}` and writing `List<String> tags = json['tags'];` throws a type error at runtime. What fixes it?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions