title: Deserialize JSON with dynamic objects
body: <p>I have a JSON object that comes with a long list of area codes. Unfortunately each area code is the object name on a list in the Data object. How do I create a class that will allow RestSharp to deserialize the content?</p>
  
  <p>Here's how my class looks now:</p>
  
  <pre><code>public class phaxioResponse
  {
      public string success { get; set; }
      public string message { get; set; }
      public List&lt;areaCode&gt; data { get; set; }
  
      public class areaCode
      {
          public string city { get; set; }
          public string state { get; set; }
      }
  }
  </code></pre>
  
  <p>And here's the JSON content:</p>
  
  <pre><code>{
      success: true
      message: "277 area codes available."
      data: {
          201: {
              city: "Bayonne, Jersey City, Union City"
              state: "New Jersey"
          }
          202: {
              city: "Washington"
          state: "District Of Columbia"
          } [...]
  }
  </code></pre>