snapshot getvalue code example Example: dataSnapshot.getValue Map<String, Object> MyValue = (HashMap<String, Object>) dataSnapshot.getValue();