Swapping nested ViewModel Properties at runtime

I have a nested ViewModel setup. There is the master_model, with three properties of type nested_model. The values in the nested_models are databound to create the animation.
I would now like to swap a nested_model in code in real time. The idea is to create an instance in code and then pass it to the bound master_model. I just can’t figure out how to.

I’m thankful for any contribution or ideas :))