transformHierarchy
fun transformHierarchy(hierarchyNode: ZkoHierarchyNode, objectsMap: Map<String, 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
hierarchyNode
The root node of the hierarchy to transform.
objectsMap
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
.