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
user1
I once faced that problem, and the solution was quite amazing.
You should add setters in your User class.
User
Try it, and you won't regret it.