title: Best way to store nested data in swift
body: <p>Given an object such as</p>
  
  <pre><code>objA{
    name: "A Name"
    subObj: {
      name: "A Sub Name"
    }
  }
  </code></pre>
  
  <p>What is the best way to store this in swift? I would think to make a class of Object A and then have a value within that class that holds the subObj. But, should that subObj have its own class as well? This method seems like it would lead to an insane amount of class declaration given large data structures?</p>