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

        :return: dictionary representation of this object.
        :rtype: dict
        """
        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
Serializes this PassportData to a dictionary.

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