code: def to_array(self):
          
          array = super(PassportData, self).to_array()
          array['data'] = self._as_array(self.data)  # type list of EncryptedPassportElement
          array['credentials'] = self.credentials.to_array()  # type EncryptedCredentials
          return array
docs: Serializes this PassportData to a dictionary.
  
          :return: dictionary representation of this object.
          :rtype: dict