Question:
I don’t know how to load this array field (IllnessHistory
), I have searched on google for it, but no one works. Anyone can help me with this? Here is my code and screenshot of my Firestore structure:
Answer:
To get the content of the “IllnessHistory” array as a list ofGiveDonor
objects, then you should create a new class that contains that specific list like this:If you have better answer, please add a comment about this, thank you!