code: def to_json(self):
          
  
          result = super(ApiKey, self).to_json()
          result.update({
              'name': self.name,
              'description': self.description,
              'accessToken': self.access_token,
              'environments': [e.to_json() for e in self.environments]
          })
          return result
docs: Returns the JSON representation of the API key.