title: angular:create model named Heros.ts
body: <p>I work on Angular 5, I have the below JSON named heros and I have to create model class for it.</p>
  
  <pre><code>[{
      "data": {
          "name": "adsd0 ",
          "lastName": "",
          "isNode": true
      },
      "children": [{
          "data": {
              "name": "",
              "lastName": ""
          }
      }]
  }]
  </code></pre>
  
  <p>So far what I did is below after which I got stuck</p>
  
  <pre><code>export class Heros{
   data:string;
  children:Child[];
  
  export class Child{
  
  }
  </code></pre>
  
  <p>Can anyone please guide me how to move ahead, I am not getting how to create a model</p>