I am currently working on converting an API response into a TypeScript class or interface.
The API is returning a list of objects with various properties, but I only require a few specific properties from the response object.
Example of API Response:
[{ 'Id' : 1, 'Name': 'test', 'Description: 'Test', 'PropertyX': 'x', 'PropertyY' : 'y' }, ...]
Typescript Class Example:
Class Response { Id: string; Name: string; }
I would appreciate any suggestions on the best approach to convert the JSON object into a TypeScript object.