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.")
        super().serialize(writer)
        writer.write_str_value("configurationId", self.configuration_id)
        writer.write_enum_value("configurationType", self.configuration_type)
        writer.write_str_value("displayName", self.display_name)
        writer.write_uuid_value("externalDirectoryObjectId", self.external_directory_object_id)
        writer.write_str_value("mailboxPrimaryAddress", self.mailbox_primary_address)
        writer.write_str_value("upn", self.upn)

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