code: def from_array(array):
          
          if array is None or not array:
              return None
          # end if
          assert_type_or_raise(array, dict, parameter_name="array")
  
          data = {}
          data['data'] = u(array.get('data'))
          data['hash'] = u(array.get('hash'))
          data['secret'] = u(array.get('secret'))
          data['_raw'] = array
          return EncryptedCredentials(**data)
docs: Deserialize a new EncryptedCredentials from a given dictionary.
  
          :return: new EncryptedCredentials instance.
          :rtype: EncryptedCredentials