scanner: removed _iter_nodes_attr function in model (causes results duplication)
Since the model
already provide a function to iterate the child nodes, _iter_nodes_attr
is not useful and causes results duplication (Related #2690 (closed))
Function to_dict
updated to reflect changes.
Test Plan
It would be nice to have another (sub)module to manage the scanner output rather than capture the stdout of the ndjson format to test the output.
Migrated from D4241 (view on Phabricator)