<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def dashboards(self, filter=None, startAt=0, maxResults=20):
 """Return a ResultList of Dashboard resources and a ``total`` count. :param filter: either "favourite" or "my", the type of dashboards to return :type filter: Optional[str] :param startAt: index of the first dashboard to return (Default: 0) :type startAt: int :param maxResults: maximum number of dashboards to return. If maxResults evaluates as False, it will try to get all items in batches. (Default: 20) :type maxResults: int :rtype: ResultList """

        params = {}
        if filter is not None:
            params['filter'] = filter
        return self._fetch_pages(Dashboard, 'dashboards', 'dashboard', startAt, maxResults, params)