pymovements.ResourceDefinitions.to_dicts#
- ResourceDefinitions.to_dicts(*, exclude_none: bool = True) list[dict[str, Any]][source]#
Convert the
ResourceDefinitionsinstance into a list of dictionaries.- Parameters:
exclude_none (bool) – Exclude attributes that are either
Noneor that are objects that evaluate toFalse(e.g.,[],{}). Attributes of typebool,int, andfloatare not excluded.- Returns:
ResourceDefinitionas a list of dictionaries.- Return type:
list[dict[str, Any]]