title: How to iterate through all fields in a firebase document?
body: <p>I want to create a column of containers that have text on them based on the fields in my Database, however, both forEach and Map only works on collections. How do I go through the fields in a single document?</p>
  <p>This gives: &quot;The method 'map' isn't defined for the type 'Object'.&quot;</p>
  <pre><code>  FutureBuilder(
            future:
          FirebaseFirestore.instance.collection(&quot;posts&quot;)
            .doc(this.id).collection(&quot;tags&quot;).doc(&quot;tags&quot;).get(),
  
            builder: (context, snapshot)
            {
              return Column(children: snapshot.data!.map((e)=&gt; Container(child: Text(e))).toList());
  
            };
            
        ),
  </code></pre>