No methods in http response object

The server just returns data formed with properties from the defined object. It doesn’t actually create an instance of the object.

Try something like this:

this.lab = Object.assign(new Lab(), this.retrievedLab)

Where this.retrievedLab is the data returned from the server.

This should create the object and then copy any of the retrieved properties into it.

Leave a Comment