def serialize(self,writer: SerializationWriter) -> None:
        """
        Serializes information the current object
        param writer: Serialization writer to use to serialize this model
        Returns: None
        """
        if writer is None:
            raise TypeError("writer cannot be null.")
        writer.write_bytes_value("encryptionKey", self.encryption_key)
        writer.write_bytes_value("fileDigest", self.file_digest)
        writer.write_str_value("fileDigestAlgorithm", self.file_digest_algorithm)
        writer.write_bytes_value("initializationVector", self.initialization_vector)
        writer.write_bytes_value("mac", self.mac)
        writer.write_bytes_value("macKey", self.mac_key)
        writer.write_str_value("@odata.type", self.odata_type)
        writer.write_str_value("profileIdentifier", self.profile_identifier)
        writer.write_additional_data_value(self.additional_data)

        Serializes information the current object
        param writer: Serialization writer to use to serialize this model
        Returns: None
        
msgraph/generated/models/file_encryption_info.py