def METHOD_NAME(self, index, role):
    tx = self.channels[index.row()]
    role_index = role - Qt.UserRole
    value = tx[self._ROLE_NAMES[role_index]]
    if isinstance(value, (bool, list, int, str, QEAmount)) or value is None:
        return value
    if isinstance(value, Satoshis):
        return value.value
    return str(value)