code: def asDictionary(self):
          
          template = {
              "type" : "esriPMS",
              "url" : self._url,
              "imageData" : self._imageDate,
              "contentType" : self._contentType,
              "width" : self._width,
              "height" : self._height,
              "angle" : self._angle,
              "xoffset" : self._xoffset,
              "yoffset" : self._yoffset
          }
          return template
docs: returns the object as a dictionary