code: def to_link(self):
          
  
          link_type = self.link_type if self.type == 'Link' else self.type
  
          return Link({'sys': {'linkType': link_type, 'id': self.sys.get('id')}}, client=self._client)
docs: Returns a link for the resource.