Element.to_dict#

Element.to_dict(depth=-1, ordered=True, **kwargs)#

Returns a dict representation of the object.

Parameters:
Return type:

dict | OrderedDict