Since my class has too many properties, I don\'t want to rewrite it into the create function to avoid code repetition. I tried different ways to do it with the spread operat