I\'m trying to map my array of objects and reasign that objects to a new array of objects with another structure.
So i\'ve made the following function in my service