我从远程睡觉服务器读取了一个json对象.此JSON对象具有TypeScript类的所有属性(根据设计).如何将接收到JSON对象转换为类型变量?
I don't want to populate a typescript var (ie have a constructor that takes this JSON object). It's large and copying everything across sub-object by sub-object & property by property would take a lot of time.
Update: You can however cast it to a typescript interface!