title: How can I read nested data (hashmap) in Firebase RealTime Database
body: <p>I follow with this <a href="https://www.youtube.com/watch?v=2eQC8NuaMkw" rel="nofollow noreferrer">tutorial</a> and save mutliple image to my firebase database : </p>
  
  <p><a href="https://i.stack.imgur.com/ToMPN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ToMPN.png" alt="enter image description here"></a></p>
  
  <p>Gallery is hashmap, how I Can read this data? </p>
  
  <p>My POJO class : </p>
  
  <pre><code>public class Tasks {
  String titletask, decriptiontask, datetask, keytask, imagetask;
  HashMap&lt;String,String&gt; gallery;
  </code></pre>
  
  <p>When I try with this code : </p>
  
  <pre><code>mRef.addValueEventListener(new ValueEventListener() {
      @Override
      public void onDataChange(@NonNull DataSnapshot dataSnapshot) {
  
          for(DataSnapshot dataSnapshot1: dataSnapshot.getChildren())
          {
              Tasks task = dataSnapshot1.getValue(Tasks.class);
              list.add(task);
          }
          adapter = new TasksAdapter(getActivity(),list);
          mRecyclerView.setAdapter(adapter);
          adapter.notifyDataSetChanged();
      }
  </code></pre>
  
  <p>I have a error : </p>
  
  <blockquote>
    <p>Failed to convert value of type java.util.HashMap to String</p>
  </blockquote>