code: def to_array(self):
          
          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
docs: Serializes this EncryptedCredentials to a dictionary.
  
          :return: dictionary representation of this object.
          :rtype: dict