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_collection_of_primitive_values("bodyContains", self.body_contains)
        writer.write_collection_of_primitive_values("bodyOrSubjectContains", self.body_or_subject_contains)
        writer.write_collection_of_primitive_values("categories", self.categories)
        writer.write_collection_of_object_values("fromAddresses", self.from_addresses)
        writer.write_bool_value("hasAttachments", self.has_attachments)
        writer.write_collection_of_primitive_values("headerContains", self.header_contains)
        writer.write_enum_value("importance", self.importance)
        writer.write_bool_value("isApprovalRequest", self.is_approval_request)
        writer.write_bool_value("isAutomaticForward", self.is_automatic_forward)
        writer.write_bool_value("isAutomaticReply", self.is_automatic_reply)
        writer.write_bool_value("isEncrypted", self.is_encrypted)
        writer.write_bool_value("isMeetingRequest", self.is_meeting_request)
        writer.write_bool_value("isMeetingResponse", self.is_meeting_response)
        writer.write_bool_value("isNonDeliveryReport", self.is_non_delivery_report)
        writer.write_bool_value("isPermissionControlled", self.is_permission_controlled)
        writer.write_bool_value("isReadReceipt", self.is_read_receipt)
        writer.write_bool_value("isSigned", self.is_signed)
        writer.write_bool_value("isVoicemail", self.is_voicemail)
        writer.write_enum_value("messageActionFlag", self.message_action_flag)
        writer.write_bool_value("notSentToMe", self.not_sent_to_me)
        writer.write_str_value("@odata.type", self.odata_type)
        writer.write_collection_of_primitive_values("recipientContains", self.recipient_contains)
        writer.write_collection_of_primitive_values("senderContains", self.sender_contains)
        writer.write_enum_value("sensitivity", self.sensitivity)
        writer.write_bool_value("sentCcMe", self.sent_cc_me)
        writer.write_bool_value("sentOnlyToMe", self.sent_only_to_me)
        writer.write_collection_of_object_values("sentToAddresses", self.sent_to_addresses)
        writer.write_bool_value("sentToMe", self.sent_to_me)
        writer.write_bool_value("sentToOrCcMe", self.sent_to_or_cc_me)
        writer.write_collection_of_primitive_values("subjectContains", self.subject_contains)
        writer.write_object_value("withinSizeRange", self.within_size_range)
        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/message_rule_predicates.py