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("campaignId", self.campaign_id)
        writer.write_str_value("channelId", self.channel_id)
        writer.write_enum_value("deliveryAction", self.delivery_action)
        writer.write_enum_value("deliveryLocation", self.delivery_location)
        writer.write_collection_of_object_values("files", self.files)
        writer.write_str_value("groupId", self.group_id)
        writer.write_bool_value("isExternal", self.is_external)
        writer.write_bool_value("isOwned", self.is_owned)
        writer.write_datetime_value("lastModifiedDateTime", self.last_modified_date_time)
        writer.write_enum_value("messageDirection", self.message_direction)
        writer.write_str_value("messageId", self.message_id)
        writer.write_uuid_value("owningTenantId", self.owning_tenant_id)
        writer.write_str_value("parentMessageId", self.parent_message_id)
        writer.write_datetime_value("receivedDateTime", self.received_date_time)
        writer.write_collection_of_primitive_values("recipients", self.recipients)
        writer.write_str_value("senderFromAddress", self.sender_from_address)
        writer.write_str_value("senderIP", self.sender_i_p)
        writer.write_str_value("sourceAppName", self.source_app_name)
        writer.write_str_value("sourceId", self.source_id)
        writer.write_str_value("subject", self.subject)
        writer.write_collection_of_primitive_values("suspiciousRecipients", self.suspicious_recipients)
        writer.write_str_value("threadId", self.thread_id)
        writer.write_str_value("threadType", self.thread_type)
        writer.write_collection_of_object_values("urls", self.urls)

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