@staticmethod
def _listitem(value):
    """Cast values and/or range to a string."""
    if isinstance(value, dict) and 'from' in value and 'to' in value:
        return str(value['from']) + '-' + str(value['to'])
    else:
        return str(value)
