internal override IDictionary <string, object> ToDictionary()
        {
            var dictionary = base.ToDictionary();

            dictionary = ListPublicRepositoriesParameters.AddAfter(dictionary, this.After);
            return(dictionary);
        }
        /// <summary>
        /// List of all the public repositories on Bitbucket.
        /// </summary>
        /// <param name="parameters">Parameters for the queries.</param>
        /// <returns></returns>
        public List <Repository> ListPublicRepositories(ListPublicRepositoriesParameters parameters)
        {
            if (parameters == null)
            {
                throw new ArgumentNullException(nameof(parameters));
            }

            return(GetPaginatedValues <Repository>(_baseUrl, parameters.Max, parameters.ToDictionary()));
        }