pymovements.ResourceDefinitions.to_dicts#

ResourceDefinitions.to_dicts(*, exclude_none: bool = True) list[dict[str, Any]][source]#

Convert the ResourceDefinitions instance into a list of dictionaries.

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:

ResourceDefinition as a list of dictionaries.

Return type:

list[dict[str, Any]]