title: How to covert the $document.data details to useful format so that I could use it in listviews
body: <p>I would like to convert $document.data details to useful format so that I could use it for further applications. This is data from firestore documents.</p>
  <pre><code>private val mFireStore = FirebaseFirestore.getInstance()
              mFireStore.collection(&quot;Users&quot;).whereEqualTo(&quot;lastName&quot;,&quot;H&quot;).whereEqualTo(&quot;firstName&quot;, &quot;Uc&quot;).get()
                  .addOnSuccessListener{ documents -&gt;
                      for(document in documents){
                          Log.d(&quot;TAG&quot;,&quot;${document.id}=&gt;${document.data}&quot;)
                          Toast.makeText(applicationContext, &quot;${document.id} =&gt; ${document.data}&quot;,
                                          Toast.LENGTH_LONG).show()
  
  
                      }
                  }
                  .addOnFailureListener{exception -&gt;
                      Log.w(&quot;TAG&quot;,&quot;Error getting documents:&quot;,exception)
                      Toast.makeText(applicationContext, &quot;Failed&quot;,
                          Toast.LENGTH_LONG).show()
  
                  }
  </code></pre>
  <p>This is my code. Now when I run the code get this in the logcat</p>
  <p>OL0rD4UfgHSh2K8UoTMnX6Xea6P2=&gt;{lastName=H, image=, firstName=Uc, B=L, gender=, organization=, profileCompleted=0, mobile=0, blood group=o+, id=OL0rD4UfgHSh2K8UoTMnX6Xea6P2, email=jojoy09@gmail.com}</p>
  <p>Now I want to convert this result to a useful format so that I could use it later. I wpuld like to convert the data so that I could load it in listview. <a href="https://i.stack.imgur.com/BVU1H.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BVU1H.jpg" alt="enter image description here" /></a></p>