transform Hierarchy
fun transformHierarchy(hierarchyNode: ZkoHierarchyNode, objects: List<ZkoObjectProto>): ZObject(source)
Recursively transforms a hierarchy of ZkoHierarchyNode objects into corresponding ZObject structures, linking child objects to their respective parents.
Return
The transformed ZObject representing the root of the hierarchy.
Parameters
hierarchy Node
The root node of the hierarchy to transform.
objects
A map of reference IDs to ZkoObjectProto objects, used to retrieve the corresponding ZObject.
Throws
If a reference ID in the hierarchy cannot be found in the objectsMap.