title: Json to typescript object . Inheritance
body: <p>I have three classes</p>
  
  <pre><code>class Device{
      name:string;
  }
  
  class Mobile extends Device{
      number:string;
  }
  
  class Computer extends Device{
      macAddress:string;
  }
  </code></pre>
  
  <p>and json</p>
  
  <pre><code>[{
  'name':'mobile1',
  'number':'600 600 600',
  'class':'Mobile'
  },{
  'name':'computer',
  'macAddress:'123123123',
  'class':'Computer'
  }]
  </code></pre>
  
  <p>is it possible using some kind of decorators/or anything else to get List of devices with correct object types.
  I'm producting Json at my site so i can also add another fields, change structure to make typescript object list generate corectly</p>
  
  <p>I was searching for any solution without success.</p>
  
  <p>Regards,
  Adrian</p>