How get value from dataSnapshot?

前端 未结 2 1542
自闭症患者
自闭症患者 2020-12-19 13:55

When I debug this code, in databaseUser dataSnapshot has the values from User in database, but in the object user1, did not add, it\'s all null. And I don\'t un

2条回答
  •  -上瘾入骨i
    2020-12-19 14:29

    I once faced that problem, and the solution was quite amazing.

    You should add setters in your User class.

    Try it, and you won't regret it.

提交回复
热议问题