I have a service (S) that receives an object of type 's', this service will be called by several classes (maybe 6) and each class has their own object a,b,c, etc. with the information necessary to fill object 's'. There is no big logic when setting the values of 's', just some
Would it be good practice to create a single class with one method for each object a,b,c and all of them return an object of type 's'? That way everything would be in a single file that would be called from the classes that will use the new service to create the object 's'.