code: def to_array(self):
          
          array = super(UserProfilePhotos, self).to_array()
          array['total_count'] = int(self.total_count)  # type int
          array['photos'] = self._as_array(self.photos)  # type list of list of PhotoSize
  
          return array
docs: Serializes this UserProfilePhotos to a dictionary.
  
          :return: dictionary representation of this object.
          :rtype: dict