@classmethod
def map_kwargs_to_params(cls, method, kwargs):
    """
        TODO: look into making this a decorator when the dust settles
        :param method: name of method to look up in the class's _kwarg_map
        :param kwargs: dict of values to map to the endpoint's query string params
        :return: dict of query string param values
        """
    kwarg_map = cls._kwarg_map[method]
    params = {}
    for param, default in kwarg_map.items():
        if param in kwargs:
            if kwargs[param] is None:
                continue
            val = kwargs[param]
        elif default is not None:
            val = default
        else:
            continue
        if isinstance(val, bool):
            val = str(val).lower()
        params[param] = val
    return params
