class GQLResult: def __init__(self, result): self.data = result.get('data') self.errors = result.get('errors')