title: C#'s DataSet-like class for Dart/Flutter?
body: <p>I am trying <strong>Flutter</strong> in a small App for my company. I come from the <strong>C#</strong> world.</p>
  <h2>My Scenario</h2>
  <p>I get data from a server (<strong>json</strong>). The objects (possibly thousands of them) i get can have any number/type of properties, which are only known at runtime.</p>
  <h2>What am i looking for?</h2>
  <p>Basically i am looking for an alternative to <strong>C#</strong>'s <a href="https://docs.microsoft.com/en-us/dotnet/api/system.data.dataset?view=net-5.0" rel="nofollow noreferrer"><strong>DataSet</strong></a> in <strong>Flutter</strong>.
  About <strong>DataSet</strong> <a href="https://docs.microsoft.com/en-us/dotnet/api/system.data.dataset?view=net-5.0#remarks" rel="nofollow noreferrer">the documentation</a> says:</p>
  <blockquote>
  <p>is an in-memory cache of data retrieved from a data source</p>
  </blockquote>
  <h2>What do i have so far?</h2>
  <p>I have looked through the web without finding anything that answers my question. The only approach i came up with was using a <strong>Map</strong>-like approach to store the <strong>json</strong> items, but i hope there is something else in <strong>Dart</strong> i can use since <strong>C#</strong> also has <strong>Dictionary</strong>, but <strong>DataSet</strong> is very rich compared to it, see the docu on <strong><a href="https://docs.microsoft.com/en-us/dotnet/api/system.data.dataset?view=net-5.0" rel="nofollow noreferrer">DataSet</a></strong>...</p>
  <hr />
  <p><strong>NOTE:</strong> In C# i used to use also a Reflection-Emit approach to crate classes at runtime once i got the data, but since i am also developing for iOS, that approach is not allowed (<a href="https://docs.microsoft.com/en-us/xamarin/ios/internals/limitations#systemreflectionemit" rel="nofollow noreferrer">JIT not allowed</a>)</p>