title: Assign dosumentSnapshot to an custom Object?
body: <p>first of all I've seen answers :
  <a href="https://stackoverflow.com/questions/38038990/firebase-converting-snapshot-value-to-objects">here</a>
  but for me coming from android and angular is just mind blowing to have to write so much code (where in android and angular it takes one line) plus answers are not the latest one so wonder if there is any better way nowadays</p>
  
  <p>for clarification here is my example:</p>
  
  <pre><code>struct User{
    let fistName:String
    let lastName:String
  }
  </code></pre>
  
  <p>and I retrieving data with :</p>
  
  <pre><code>Firestoer.firestore().collection("users").document('someId').getDocument{
     (snapshot,error) in 
  }
  </code></pre>
  
  <p>The question is how to assign snapshot values to User object values ith one line of code - soething like user = snapshot -ish .</p>