can anyone tell me the most idiomatic way to do th...
# announcements
j
can anyone tell me the most idiomatic way to do the following?: I'm receiving some
List
of a class with tons of data that I don't care about. let's say I receive a class called
Soup
and inside that class there's a
List<Ingredients>
which also has its own classes
Carrot
and
Potato
.. but none of these classes do what I want to do, so when I receive that initial List, I'd like to re-map it so that it returns
MySoup
which contains a
List<MyIngredients>
which in turn will have
MyCarrot
and
MyPotato
models