title: Adding an Object to Cloud Firestore using Flutter
body: <p>I want to add an object to Google Cloud Firestore in my Flutter app like this:</p>
  
  <p><img src="https://i.stack.imgur.com/pUAdZ.png" alt="Firestore image"></p>
  
  <p>I have already made a Reply class:</p>
  
  <pre><code>class Reply {
  Reply(this.replyName, this.replyText, this.replyVotes);
    final String replyName;
    final String replyText;
    final String replyVotes;
  
    String getName() {
      return replyName;
    }
  
    String getText() {
      return replyText;
    }
  
    String getVotes() {
      return replyVotes;
    }
  }
  </code></pre>
  
  <p>How do I add a Reply object to cloud Firestore?</p>
  
  <p><strong>Edit:</strong>
  Just to clarify, I want to create a field with the data type <code>Object</code> which has fields inside it: <a href="https://i.stack.imgur.com/jyuzz.png" rel="noreferrer">Reply Object Image</a></p>