how do i read values from a firebase database for nested parent nodes via pojo classes?

You’re close, but right now you have nothing in your POJOs capturing the 20201104 that the error message mentions. Since you can’t know the actual keys, those will need to be a map.

So I think your:

private Stats stats;

Should actually be:

private Map<String, Stats> stats;

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top