teja2495
12/10/2018 - 5:27 AM

Get an ArrayList from an Object in Firebase

List<Gift> giftsList;
GenericTypeIndicator<List<Gift>> t = new GenericTypeIndicator<List<Gift>>(){};
giftsList=postSnapshot.child("gifts").getValue(t);
person.setGifts(giftsList);