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_str_value("accountName", self.account_name)
        writer.write_str_value("commandLine", self.command_line)
        writer.write_datetime_value("createdDateTime", self.created_date_time)
        writer.write_object_value("fileHash", self.file_hash)
        writer.write_enum_value("integrityLevel", self.integrity_level)
        writer.write_bool_value("isElevated", self.is_elevated)
        writer.write_str_value("name", self.name)
        writer.write_str_value("@odata.type", self.odata_type)
        writer.write_datetime_value("parentProcessCreatedDateTime", self.parent_process_created_date_time)
        writer.write_int_value("parentProcessId", self.parent_process_id)
        writer.write_str_value("parentProcessName", self.parent_process_name)
        writer.write_str_value("path", self.path)
        writer.write_int_value("processId", self.process_id)
        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/process.py