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.