I have a class that has several embedded arrays as well as a couple of objects. I\'m using Flutter and can\'t figure out how to read/write to Cloud Firestore.
I can r
Firebase packages returns List types for Array/List types present in a snapshot. Try converting List to List or List before assigning to variables. And for GameReview object, currently, you are trying to assign object of Map to the object, it would be beneficial if you write static fromMap method in GameReview class which takes map argument and converts it to desired object structure, as you would see in many of flutters example codes.
class GameReivew{
static GameReivew fromMap(Map map){
GameReivew gameReivew = new GameReivew();
gameReivew.name = map["name"];
gameReivew.howPopular = map["howPopular"];
....
return gameReivew;
}
}