<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def value(self):
 """returns the object as dictionary"""

        if self._outline is None:
            return {
                "type" : "esriSMS",
                "style" : self._style,
                "color" : self._color.value,
                "size" : self._size,
                "angle" : self._angle,
                "xoffset" : self._xoffset,
                "yoffset" : self._yoffset
            }
        else:
            return {
                "type" : "esriSMS",
                "style" : self._style,
                "color" : self._color.value,
                "size" : self._size,
                "angle" : self._angle,
                "xoffset" : self._xoffset,
                "yoffset" : self._yoffset,
                "outline" : {
                    "width" : self._outline['width'],
                    "color" : self._color.value
                }
            }