def convert_dateranges(kwargs):
    """Creates the DateRange object from the parameters dictionary.

  Args:
    kwargs: a dict containing the parameters passed in the request.
  Returns:
    A list containing a DateRange object.
  """
    date_range = {'startDate': kwargs.get('start_date', None), 'endDate':
        kwargs.get('end_date', None)}
    return [date_range]
