title: Are there performance concerns with using the class implements interfaces pattern on API responses in typescript services?
body: <p>The pattern below is something I am seeing more and more in our code base.</p>
  <p>Are there any performance concerns with using something like this on API responses that return large data sets?</p>
  <pre><code>export interface IPerson {
    id: int,
    name: string
  }
  
  export class Person implements IPerson{
      id: int;
      name: string;
  
      constructor(person: any) {
         this.id = person.id;
         this.name = person.name;
      }
  }
  
  // usage
  let persons: IPerson[] = [];
  this.httpClient.get().then(response =&gt; {
     const _response = JSON.parse(response) as IPerson[];
      _response.forEach(person =&gt; persons.push(new Person(person))
  })
  </code></pre>