'Build a body from the Channel.
Constructs a dictionary that\'s appropriate for passing into watch()
methods as the value of body argument.
Returns:
A dictionary representation of the channel.'

def body(self):

    result = {'id': self.id, 'token': self.token, 'type': self.type, 'address': self.address}
    if self.params:
        result['params'] = self.params
    if self.resource_id:
        result['resourceId'] = self.resource_id
    if self.resource_uri:
        result['resourceUri'] = self.resource_uri
    if self.expiration:
        result['expiration'] = self.expiration
    return result
