Lets say I have a dataclass about a user. I get the data from its source as a nested dict:
{
name: 'test',
addresses: [{}, {}]
}
where addresses is a list of structured data, formattable into its own dataclass.
Can I put together something in the parent dataclass to automatically ingest the addresses and build them into their own defined dataclass? Or would I have to first turn them into instances of an Address dataclass, then pull that into a parent?