async def METHOD_NAME(self, profile, did, accept):
    if isinstance(self.resolved, Exception):
        raise self.resolved
    if isinstance(self.resolved, dict):
        return self.resolved
    return self.resolved.serialize()