You just can’t.
Think that a model is some sort of tree. Each module has many submodules but only a single parent. The parameters are obtained recursively exploring all the childrends but the root is not aware of how many childrens and subchildrens are there.
You can just store the object in a list and read from the “end” (there is no such thing) to the root.