@staticmethod
def _dict_to_list(data_to_convert, color=None):
    """Converts dictionary elements into list.

        Args:
          data_to_convert: dictionary to convert
          color: color code (i.e. '%red%' for each row)

        Returns:
          list with converted data.

        """
    if not isinstance(data_to_convert, dict):
        return data_to_convert
    array = []
    for key, val in data_to_convert.items():
        if color is not None:
            array.append('{color}{key}%reset% : {val}'.format(color=color,
                key=key, val=val))
        else:
            array.append('%s: %s' % (key, val))
    return array
