title: Retrieve firebase hashmap data in POJO
body: <p>I used an <code>ArrayList</code> to store data on <code>Firebase</code>.It got stored as a <code>HashMap</code> with key value starting from 0 and its value stored as string.</p>
  
  <p>The database is as follows:</p>
  
  <p><a href="https://i.stack.imgur.com/ksCcD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ksCcD.png" alt="enter image description here"></a></p>
  
  <p>I am using <code>POJO</code>, to store and retrieve data.</p>
  
  <p>My <code>POJO</code> is defined as follow:</p>
  
  <pre><code>@JsonIgnoreProperties(ignoreUnknown = true)
  public class POJO_MemoriesRVDisplay {
      String mem_name;
      String mem_place_street_address;
      HashMap&lt;Object,Object&gt; images;
  
      public POJO_MemoriesRVDisplay() {
      }
  
      public HashMap&lt;Object, Object&gt; getImages() {
          return images;
      }
  
      public void setImages(HashMap&lt;Object, Object&gt; images) {
          this.images = images;
      }
  
      public POJO_MemoriesRVDisplay(String mem_name, String mem_place_street_address, HashMap&lt;Object, Object&gt; images) {
          this.mem_name = mem_name;
          this.mem_place_street_address = mem_place_street_address;
          this.images = images;
      }
  
      public String getMem_name() {
          return mem_name;
      }
  
      public void setMem_name(String mem_name) {
          this.mem_name = mem_name;
      }
  
      public String getMem_place_street_address() {
          return mem_place_street_address;
      }
  
      public void setMem_place_street_address(String mem_place_street_address) {
          this.mem_place_street_address = mem_place_street_address;
      }
  }
  </code></pre>
  
  <p>When I run this code, I get an error such as:</p>
  
  <pre><code>Failed to bounce to type
  </code></pre>
  
  <p>How do I declare the <code>POJO</code> properly.  I have tried several posts but couldn't help it. Tried changing the declaration of images to strings, still wouldn't work. Please help!</p>