title: How to Convert Map to Object
body: <p>I have a Map Object and the data in map is like</p>
  
  <pre><code>col1 -&gt; data1, col2 -&gt; data2, col3 -&gt; data3 ...
  </code></pre>
  
  <p>Is it possible to convert this Map to Java Object like</p>
  
  <pre><code>class MapObj {
  
      String col1 = "data1";
      String col2 = "data2";
      String col3 = "data3";
  
  }
  </code></pre>