title: How to read objects from Json File in dart and Map to variables?
body: <p>I have a JSON file with different and unique objects as Employee1, employee2 and so on. Now I want to read the JSON file using the unique objects and then map the object contents to a variable and use it in my project.</p>
  <p>the JSON file is as follows:</p>
  <pre><code>[
      {
          &quot;employee1&quot;: {
              &quot;firstName&quot;: &quot;Lokesh&quot;,
              &quot;lastName&quot;: &quot;Gupta&quot;,
              &quot;website&quot;: &quot;howtodoinjava.com&quot;
          }
      },
      {
          &quot;employee2&quot;: {
              &quot;firstName&quot;: &quot;Brian&quot;,
              &quot;lastName&quot;: &quot;Schultz&quot;,
              &quot;website&quot;: &quot;example.com&quot;
          }
      }
  ]
  </code></pre>