Getting type 'String' is not a subtype of type 'Map<String, dynamic>' in type cast in Android only #3621
Unanswered
colin-young
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Map<String, dynamic> is typically the type for a json object deserialized with jsonDecode. At some point you receive a String that is not deserialized or a json object when you expect a String. If your providers provide strongly typed values (not dynamic or Object) the error should appear before in the processing. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been developing on MacOS and everything has been working fine. When I run on an Android emulator I'm getting "type 'String' is not a subtype of type 'Map<String, dynamic>' in type cast".
Any suggestion what I might be doing wrong? Or where to begin looking?
Beta Was this translation helpful? Give feedback.
All reactions