I am using firebase to retrieve data from database n use
Map map = dataSnapshot.getValue(Map.class);
to get values, but it
To introduce the GenericTypeIndicator, you can change this line:
GenericTypeIndicator
in to this:
GenericTypeIndicator> genericTypeIndicator = new GenericTypeIndicator>() {}; Map map = dataSnapshot.getValue(genericTypeIndicator );
This should work well in your case. Please give it a try and let me know.