def enum_value(value, text=None, is_default=False):
    """Create dictionary representing a value in an enumeration of possible
    values for a command parameter.

    Parameters
    ----------
    value: scalar
        Enumeration value
    text: string, optional
        Text representation for the value in the front end
    is_default: bool, optional
        Flag indicating whether this is the default value for the list

    Returns
    -------
    dict
    """
    obj = {'value': value, 'isDefault': is_default}
    if not text is None:
        obj['text'] = text
    else:
        obj['text'] = str(value)
    return obj