title: How to create PODO class based on dynamically changing keys in flutter?
body: <p>I have json object with list of elements, the last element includes a string that contains each key separated by comma.</p>
  <pre><code>  [
      {&quot;US&quot;:1M, &quot;UK&quot;:2M,&quot;Swiss&quot;:3M,&quot;Spain&quot;:0.5M,&quot;Germany&quot;:10M},
      {&quot;US&quot;:1.5M, &quot;UK&quot;:26M,&quot;Swiss&quot;:31M,&quot;Spain&quot;:0.56M,&quot;Germany&quot;:1M},
  
      {&quot;total&quot;:10000,&quot;key&quot;:&quot;US,UK,Swiss,Spain,Germany&quot;}
    ]
  </code></pre>
  <p>Key field in last element will be changed and based on that string rest of the list will be generated. if the key has 10 strings separated by comma, then each list will contains 10 items. How can I generate a PODO class by adding a loop based on the number of the strings?</p>