title: How to Convert Firebase data to Java Object...?
body: <p>Using Firebase Library to send data to the server in the form <code>Message(String, String)</code> added to the <code>HashMap&lt;String, Message&gt;</code>   </p>
  
  <p>Example:</p>
  
  <pre><code>Firebase fb = new Firebase(URL);
  Firebase msgRef = fb.child("finished");
  HashMap&lt;String, Message&gt; msgList = new HashMap&lt;&gt;();
  Message msg = new Message(m, n);
  msgList.put(HASHKEY, msg);
  msgRef.push().setValue(msgList);
  </code></pre>
  
  <p>While receiving data with Firebase method <code>addValueEventListener()</code> getting String in this Form </p>
  
  <pre><code>{ key = finished, value = {
      -Js9Rn0uttjYIGdcv8I1={Moosa={message=email, name=Kamran}},
      -Js9Vsmv6BnVzOzpl2L8={Moosa={message=msgs, name=Imran}}, 
      -Js9WtQ8yeDwVxQMFCZb={Moosa={message=samsung, name=Samad}}, 
      -Js9RarxoJPKn4RO2HaM={Moosa={message=Message, name=Moosa}}, 
      -Js9b6f75lwwbsqQNJz0={Moosa={message=Qmobile, name=Bilal}}, 
      -Js9aDxt8TlgTGUccuxu={Moosa={message=last, name=Moosa}}} }
  </code></pre>
  
  <p>How can I convert it into Message Object.....????</p>