message_codes should explicitly support Map<String, dynamic> to better support JSON (Firebase) #833
Labels
impact: crowd
Affects many people, though not necessarily a specific customer with an assigned label. (P2)
plugin: cloud_firestore
type: bug
Something isn't working
@kevmoo suggested i file an issue report here in regards to our discussion in this thread: google/json_serializable.dart#137
To summarize, Flutter's Firebase package returns documents from Firestore collections as _InternalLinkedHashMap<dynamic, dynamic>, but Flutter's recommended json package json_serializable expects json to come in as a Map<String, dynamic>. This results in the following error:
Here is an example of some code which will trigger this:
Thank you!
The text was updated successfully, but these errors were encountered: