'Return a dict representation of the data.
This is the format that is serialised and stored in the database\'s
SyncPoints.'

def as_dict(self):

    return {'id': self.primary_key, 'name': self.name, 'reference_id': self.reference_id(), 'attrs': dict(self._attributes), 'status': self.status, 'action': self.action, 'uuid': self.uuid}
