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 toFalse
(e.g.,[]
,{}
). Attributes of typebool
,int
, andfloat
are not excluded.- Returns:
ResourceDefinition
as a list of dictionaries.- Return type:
list[dict[str, Any]]