1

The server returns something like this

{
    "_id": "5874e4e481009b3cbb0f0ea6",
    "description": "A home where the family lives",
    "administrator": "586df1e06485de5fc48b72a5",
    "name": "Johns House",
    "__v": 0,
    "rooms": [],
    "users": []
  }

What is the best technique to use this data? If I am to cast this into a class, how would I do it? I am using typescript and the angularjs framework.

Rathma
  • 1,196
  • 2
  • 33
  • 65
TradeRaider
  • 754
  • 4
  • 8
  • 21
  • 1
    Possible duplicate of [How do I initialize a typescript object with a JSON object](http://stackoverflow.com/questions/22885995/how-do-i-initialize-a-typescript-object-with-a-json-object) – Daniel Corzo Jan 10 '17 at 19:57

0 Answers0