title: JSON serialization and deserialization to objects in Flutter
body: <p>Since Flutter took out dart: mirrors off of its SDK, it's no longer possible to use libraries like dartson for JSON to object serialization/deserialization. However I've read that built_value is another way of achieving a similar purpose. I couldn't find any good examples on how to implement it as it contains a significant amount of boilerplate code. Can someone give me an example? For instance, this is the JSON I'm trying to serialize to objects:</p>
  <pre><code>{
      &quot;name&quot;:&quot;John&quot;,
      &quot;age&quot;:30,
      &quot;cars&quot;: [
          { &quot;name&quot;:&quot;Ford&quot;, &quot;models&quot;:[ &quot;Fiesta&quot;, &quot;Focus&quot;, &quot;Mustang&quot; ] },
          { &quot;name&quot;:&quot;BMW&quot;, &quot;models&quot;:[ &quot;320&quot;, &quot;X3&quot;, &quot;X5&quot; ] },
          { &quot;name&quot;:&quot;Fiat&quot;, &quot;models&quot;:[ &quot;500&quot;, &quot;Panda&quot; ] }
      ]
   }
  </code></pre>