title: How to retrieve a nested list object inside an object in Firebase
body: <p>I'm trying to get the data of a nested list object that I have inside one object in Firebase. I've tried to search some similar question and I can't find any similar question. I've spent a lot of time trying to get this object but I always get null values, but I can see in data snapshot that the whole object is there.</p>
  
  <p>I can get the Car object, but I'm not able to get the list of users that I have inside this object. </p>
  
  <p>This is my database look in Firebase:</p>
  
  <pre><code>Car
   -KloSsiZiz6DfvBhp9dk
     - timestamp: 1496602610880
     * users
         - QsqgxinR4TabETV5DaAAg4fW9fE2
         - k2L3B6rV0NTpLQsMfWhw2MrTZl42
               - displayName: "bob"
               - email: "t@t.com"
               - guestType: 2
               - uid: "k2L3B6rV0NTpLQsMfWhw2MrTZl42"
         - m5PfDgvbGrM9IXZKgdO04TTvYMO2
         - qXkogeDvLGPlP7LNFrWnAgbVzaQ2
         - r2T34mSC0DggDejFxcb91SjqFVq1
     - date: "2017-08-04T02:00:00Z"
  </code></pre>
  
  <p>My Model Car:</p>
  
  <pre><code>    private List &lt;User&gt; users;
      private Object timestamp;
      private String date;
  
      public Car(){}
  
  //Getter and setter
  </code></pre>
  
  <p>My Model User;</p>
  
  <pre><code> private String displayName;
      private String email;
      private String photoUrl;
      private int guestType;
      private String uid;
  
  
      public User() {}
  
  //Getter and setter
  </code></pre>
  
  <p>This is the way that I have the Car object</p>
  
  <pre><code>            @Override
              public void onDataChange(DataSnapshot dataSnapshot) {
                   Car car= (Car) dataSnapshot.getValue(Car.class);
  
  //At this point, I can get the values inside the car object, but if I try to do car.getUsers() I get a null.
               }
  </code></pre>
  
  <p>Thanks in advance</p>