code: def payload(self):
          
          payload = {'type': self.resource_type(), 'attributes': self.attributes}
          if self.id:
              payload['id'] = self.id
          return payload
docs: Renders the resource payload.
          :returns: a dict representing the object to be used as payload for a request