Is there any way to map object received from server as a JSON to class instance in CoffeeScript?
I have a lot of cases where my JSON is:
{
id: '123'
name: 'wojtek'
age: 24
}
and my coffee class is:
class Person
constructor: (id, name, age) ->
How to directly map JSON to class instance without assigning each property separately?