title: How to convert a Map to Arraylist of Objects?
body: <p>Suppose I have having Json response like this: </p>
  
  <pre><code>{
    "status": true,
    "data": {
      "29": "Hardik sheth",
      "30": "Kavit Gosvami"
    }
  }
  </code></pre>
  
  <p>I am using Retrofit to parse Json response. As per <a href="https://stackoverflow.com/questions/33758601/parse-dynamic-key-json-string-using-retrofit">this</a> answer I will have to use <code>Map&lt;String, String&gt;</code> which will give all the data in Map. Now what I want is <code>ArrayList&lt;PojoObject&gt;</code>.</p>
  
  <p><strong>PojoObject.class</strong></p>
  
  <pre><code>public class PojoObject {
      private String mapKey, mapValue;
  
      public String getMapKey() {
          return mapKey;
      }
  
      public void setMapKey(String mapKey) {
          this.mapKey = mapKey;
      }
  
      public String getMapValue() {
          return mapValue;
      }
  
      public void setMapValue(String mapValue) {
          this.mapValue = mapValue;
      }
  }
  </code></pre>
  
  <p>What is the best way to convert a <code>Map&lt;key,value&gt;</code> to a <code>List&lt;PojoObject&gt;</code>?</p>