title: Typescript: Convert JSON object to a class/interface object
body: <p>I m trying to convert an API response to typescript class/interface.</p>
  
  <p>Here the API returns a list of objects with some properties, but I need only few of the properties of the response object.</p>
  
  <p>API Response Example:</p>
  
  <pre>
      [{
      'Id' : 1,
      'Name': 'test',
      'Description: 'Test',
      'PropertyX': 'x',
      'PropertyY' : 'y'
      },
      ...]
  </pre>
  
  <p>Typescript Class</p>
  
  <pre>
  
      Class Response {
       Id: string;
       Name: string;
      }
  
  </pre>
  
  <p>Can you please suggest me what will be the best approach for converting the JSON object to a typescript object.</p>