title: How to store and get an object without destroying the type in localStorage?
body: <p>I'm working on an AngularJS project with TypeScript.</p>
  
  <p>A <code>person</code> is an object of the <code>Person</code> class. I need to store <code>person</code> object in <code>localStorage</code> and retrieve it with its type.</p>