def to_api(self): d = UserEvent.to_api(self) d['src'] = resources_to_api(self.src) d['dst'] = resources_to_api(self.dst) return d
def to_api(self): d = UserEvent.to_api(self) d['resources'] = resources_to_api(self.resources) return d