def to_array(self):
        """
        Serializes this EncryptedCredentials to a dictionary.

        :return: dictionary representation of this object.
        :rtype: dict
        """
        array = super(EncryptedCredentials, self).to_array()
        array['data'] = u(self.data)  # py2: type unicode, py3: type str
        array['hash'] = u(self.hash)  # py2: type unicode, py3: type str
        array['secret'] = u(self.secret)  # py2: type unicode, py3: type str
        return array
Serializes this EncryptedCredentials to a dictionary.

        :return: dictionary representation of this object.
        :rtype: dict