TreeNode.to_data

TreeNode.to_data()[source]

Convert an object to its native data representation.

Returns:
dict

The data representation of the object as described by the schema.