pymovements.ResourceDefinition.to_dict#

ResourceDefinition.to_dict(*, exclude_none: bool = True) dict[str, Any][source]#

Convert the ResourceDefinition instance into a dictionary.

Parameters:

exclude_none (bool) – Exclude attributes that are either None or that are objects that evaluate to False (e.g., [], {}). Attributes of type bool, int, and float are not excluded.

Returns:

dict representation of ResourceDefinition.

Return type:

dict[str, Any]