Uri endpoint(bool https, String apiEndpoint) { if (queryParams == null) { return uriBuilder(https, apiEndpoint, path); } return uriBuilderParams(https, apiEndpoint, path, queryParams!); }