Is there a way to store Key in class which I cast from Firebase object?
问题 This is my database : [x] database -- > [+] students -----> [+] -KuGacomJymBwkcc7zlU (pushKey) -----------> Name - Jon -----------> Age - 21 I have Student.class : String name; String age; public Student(String Name, String Age) { this.name=Name; this.age=Age; } I read the information from firebase datasnapshot like this: Student newStudent = DataSnapshot.getValue(Student.class); When I do this I get the name and the age, but my question if there is a way to store the ID (pushKey) on the