I'm retrieving a very large data from our API back-end. I need to convert the JSON object to a typescript object. I've tried doing JSON.parse(JSON.stringify(result));
but unfortunately, the model created from this has no methods included. How can I convert this JSON object to a typescript class? Could you please suggest any npm plugin that I can use?
result => {
this.app = JSON.parse(JSON.stringify(result));
resolve(true);
}
I have a gigantic model wherein it involves nested object and polymorphism. I was hoping that I can use a npm plugin to help me