title: Service to transform a very big JSON to SQL and Object model?
body: <p>I am programming an App in Flutter and I have this very big JSON object (659 attributes).
  I need to create a local table with sqflite and the creation of the table would be very long to write down. The same with the creation of the model, but i know quicktype.io. The problem with quicktype.io is that it seems to give me some kind of error (too large JSON maybe?), because my output is only this.</p>
  <pre><code>import 'package:meta/meta.dart';
  import 'dart:convert';
  
  Map&lt;String, dynamic&gt; preguntaFromMap(String str) =&gt; Map.from(json.decode(str)).map((k, v) =&gt; MapEntry&lt;String, dynamic&gt;(k, v));
  
  String preguntaToMap(Map&lt;String, dynamic&gt; data) =&gt; json.encode(Map.from(data).map((k, v) =&gt; MapEntry&lt;String, dynamic&gt;(k, v)));
  
  enum PreguntaEnum { EMPTY, NO, INVALID_DATE }
  
  final preguntaEnumValues = EnumValues({
      &quot;&quot;: PreguntaEnum.EMPTY,
      &quot;Invalid Date&quot;: PreguntaEnum.INVALID_DATE,
      &quot;No&quot;: PreguntaEnum.NO
  });
  
  class EnumValues&lt;T&gt; {
      Map&lt;String, T&gt; map;
      Map&lt;T, String&gt; reverseMap;
  
      EnumValues(this.map);
  
      Map&lt;T, String&gt; get reverse {
          if (reverseMap == null) {
              reverseMap = map.map((k, v) =&gt; new MapEntry(v, k));
          }
          return reverseMap;
      }
  }
  </code></pre>
  <p>Also, is there any issue continuously accessing such a big object from local database? I was thinking about segmenting the attributes in parts and operate with each part separately, but I don't know if it is worth the time or if it will be any different.
  Thanks</p>