title: Map Firebase database child to swift 3 object
body: <p>How dow I map the objects stored in a list in my firebase db to their corresponding objects in swift?</p>
  
  <p>Right now the following isn't working:</p>
  
  <pre><code>for child in snapshot.children{
      let tempMed = child as Med
  }
  </code></pre>