Copy properties from one object to another.
This function is aimed to solve the problem of the typescript syntax error when copying properties from a source object to a destination object, even if both objects are the same type.
The destination object where properties will be copied to
The source object from which properties will be copied
The list of properties to copy
Copy properties from one object to another.