title: Flutter Indexing Json Datas
body: <p>I don't want to index the json like <code>(json[&quot;features&quot;][0]</code> or <code>json[&quot;features&quot;][1])</code>. How can I instead make this a list or something?</p>
  <p>My code is below:</p>
  <pre><code>class Other {
    String title;
    double mag;
  
    String title1;
    double mag1;
  
    String title2;
    double mag2;
  
    Other({this.mag, this.title, this.mag1, this.title1, this.mag2, this.title2});
    factory Other.fromJson(Map&lt;String, dynamic&gt; json) {
      return Other(
        title: json[&quot;features&quot;][0][&quot;properties&quot;][&quot;place&quot;],
        mag: json[&quot;features&quot;][0][&quot;properties&quot;][&quot;mag&quot;],
        title1: json[&quot;features&quot;][1][&quot;properties&quot;][&quot;place&quot;],
        mag1: json[&quot;features&quot;][1][&quot;properties&quot;][&quot;mag&quot;],
        title2: json[&quot;features&quot;][2][&quot;properties&quot;][&quot;place&quot;],
        mag2: json[&quot;features&quot;][2][&quot;properties&quot;][&quot;mag&quot;],
      );
    }
  }
  </code></pre>
  <p>json datas is here : <a href="https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_hour.geojson" rel="nofollow noreferrer">https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_hour.geojson</a></p>