I wonder that is there easy way to set this properties with constructor parameters like using spread operator or another way?
this is clasical way of setting props of this:
constructor(id=0, name='', surname='') {
this.Id = id;
this.Name = name;
this.Surname = surname;
}
I am looking for another way to set this props in one line :)