title: Flutter how to parse JSON Mongodb data
body: <p>I'm trying to parse some JSON data with mongodb. I have no data found I think that the problem is with the difference in field in mongodb data</p>
  <pre><code>{&quot;imei&quot;:&quot;865566048694354&quot;,&quot;_id&quot;:&quot;5e7c996fd6eb5f039c50bd26&quot;,&quot;createdAt&quot;:&quot;2020-03-26T12:00:47.021Z&quot;,&quot;updatedAt&quot;:&quot;2020-03-26T12:00:47.021Z&quot;,&quot;__v&quot;:0},{&quot;imei&quot;:{&quot;test&quot;:{&quot;tactileState&quot;:&quot;ignore&quot;,&quot;pixelState&quot;:&quot;ignore&quot;},&quot;name&quot;:&quot;h12hhhhgkhh&quot;},&quot;_id&quot;:&quot;5ea8357d8c562b3dd8fe5bf1&quot;,&quot;createdAt&quot;:&quot;2020-04-28T13:54:05.094Z&quot;,&quot;updatedAt&quot;:&quot;2020-04-28T13:54:05.094Z&quot;,&quot;__v&quot;:0},{&quot;imei&quot;:{&quot;test&quot;:{&quot;tactileState&quot;:&quot;ignore&quot;,&quot;pixelState&quot;:&quot;ignore&quot;},&quot;name&quot;:&quot;h12hhhhgkhh&quot;},&quot;_id&quot;:&quot;5ea8366741a5e527446744a2&quot;,&quot;createdAt&quot;:&quot;2020-04-28T13:57:59.035Z&quot;,&quot;updatedAt&quot;:&quot;2020-04-28T13:57:59.035Z&quot;,&quot;__v&quot;:0},{&quot;imei&quot;:{&quot;test&quot;:{&quot;tactileState&quot;:&quot;ignore&quot;,&quot;pixelState&quot;:&quot;ignore&quot;,&quot;greyState&quot;:&quot;ignore&quot;},&quot;name&quot;:&quot;h12hhhhgkhh&quot;},&quot;_id&quot;:&quot;5ea837614cf7ed30f0163c38&quot;,&quot;createdAt&quot;:&quot;2020-04-28T14:02:09.395Z&quot;,&quot;updatedAt&quot;:&quot;2020-04-28T14:02:09.395Z&quot;,&quot;__v&quot;:0},{&quot;imei&quot;:{&quot;test&quot;:{&quot;bafleState&quot;:&quot;1&quot;,&quot;microState&quot;:&quot;1&quot;,&quot;vibreurState&quot;:&quot;1&quot;},&quot;name&quot;:&quot;h12hhhhgkhh&quot;},&quot;_id&quot;:&quot;5ea837854cf7ed30f0163c39&quot;,&quot;createdAt&quot;:&quot;2020-04-28T14:02:45.287Z&quot;,&quot;updatedAt&quot;:&quot;2020-04-28T14:02:45.287Z&quot;,&quot;__v&quot;:0}
     
  </code></pre>
  <p>If you can help me how to write the class and how to write the method in flutter because everything which I made always snapshot has no data I think that the problem in the difference in fields in mongodb data makes the problem because all tutorial and article which I see didn't use different database field always the same structure even with embedded document.</p>