title: Flutter Firestore get Array from Geopoint >> Instance of 'GeoPoint' <<
body: <p>I've been getting this error (&quot;Instance of 'GeoPoint) that I want to get the array list of the Geopoint from Firestore, I still don't know how to solve this, any help will be appreciated.</p>
  <p><a href="https://i.stack.imgur.com/Dnzgj.png" rel="nofollow noreferrer">Image from Firestore (Array List GeoPoint)</a></p>
  <p>This is my Class Model to get all of the document from Firestore</p>
  <pre><code>class ModelLA{
  
    String nama, kode, alamat, creator, pass, foto;
    List&lt;GeoPoint&gt; titikLokasi;
  
    ModelLA.fromMap(Map&lt;String, dynamic&gt; data){
      nama = data['nama'];
      kode = data['kode'];
      alamat = data['alamat'];
      creator = data['creator'];
      pass = data['pass'];
      foto = data['foto '];
      titikLokasi = List.from(data['titikLokasi']);
    }
  
  }
  </code></pre>
  <p>This is how do I get all of the data</p>
  <pre><code> Firestore.instance.collection('LA').getDocuments().then((value){
        value.documents.forEach((element) {
          if (value.documents.isNotEmpty){
            value.documents.forEach((element) async {
              ModelLA modelLA = ModelLA.fromMap(element.data);
            });
          }
        });
  </code></pre>
  <p>Return error:</p>
  <blockquote>
  <p>[Instance of 'GeoPoint', Instance of 'GeoPoint', Instance of 'GeoPoint', Instance of 'GeoPoint', Instance of 'GeoPoint', Instance of 'GeoPoint']</p>
  </blockquote>