I've seen almost all examples about how to work with angular material tree checkbox component. for example official example and this.
these examples show us a string array structure as a data was bonded. but how can we transform a nested complex object array to this component?
My data structure:
As you can see the data says to the client which items of the checkbox must be set as ticked. and 'Id' must be bind to the tree.
When I replace my 'TREE-DATA' with official example 'TREE-DATA', I see the following tree as result.
I suppose we need to change 'buildFileTree()' or 'transformer()' methods in official example.
Angular(7.0.0), Angular Material(6.4.7)