docs: def to_array(self):
          """
          Serializes this ChatMember to a dictionary.
  
          :return: dictionary representation of this object.
          :rtype: dict
          """
          array = super(ChatMember, self).to_array()
          array['user'] = self.user.to_array()  # type User
  
          array['status'] = u(self.status)  # py2: type unicode, py3: type str
  
          if self.until_date is not None:
              array['until_date'] = int(self.until_date)  # type int
          if self.can_be_edited is not None:
              array['can_be_edited'] = bool(self.can_be_edited)  # type bool
          if self.can_change_info is not None:
              array['can_change_info'] = bool(self.can_change_info)  # type bool
          if self.can_post_messages is not None:
              array['can_post_messages'] = bool(self.can_post_messages)  # type bool
          if self.can_edit_messages is not None:
              array['can_edit_messages'] = bool(self.can_edit_messages)  # type bool
          if self.can_delete_messages is not None:
              array['can_delete_messages'] = bool(self.can_delete_messages)  # type bool
          if self.can_invite_users is not None:
              array['can_invite_users'] = bool(self.can_invite_users)  # type bool
          if self.can_restrict_members is not None:
              array['can_restrict_members'] = bool(self.can_restrict_members)  # type bool
          if self.can_pin_messages is not None:
              array['can_pin_messages'] = bool(self.can_pin_messages)  # type bool
          if self.can_promote_members is not None:
              array['can_promote_members'] = bool(self.can_promote_members)  # type bool
          if self.can_send_messages is not None:
              array['can_send_messages'] = bool(self.can_send_messages)  # type bool
          if self.can_send_media_messages is not None:
              array['can_send_media_messages'] = bool(self.can_send_media_messages)  # type bool
          if self.can_send_other_messages is not None:
              array['can_send_other_messages'] = bool(self.can_send_other_messages)  # type bool
          if self.can_add_web_page_previews is not None:
              array['can_add_web_page_previews'] = bool(self.can_add_web_page_previews)  # type bool
          return array