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_enum_value("detectionStatus", self.detection_status)
        writer.write_object_value("imageFile", self.image_file)
        writer.write_str_value("mdeDeviceId", self.mde_device_id)
        writer.write_datetime_value("parentProcessCreationDateTime", self.parent_process_creation_date_time)
        writer.write_int_value("parentProcessId", self.parent_process_id)
        writer.write_object_value("parentProcessImageFile", self.parent_process_image_file)
        writer.write_str_value("processCommandLine", self.process_command_line)
        writer.write_datetime_value("processCreationDateTime", self.process_creation_date_time)
        writer.write_int_value("processId", self.process_id)
        writer.write_object_value("userAccount", self.user_account)

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