def to_json(self):
            result = json_lib.JsonObject(position_start=self.position_start,
                                         position_end=self.position_end,
                                         last_known_size=self.last_known_size,
                                         is_log_file=self.is_log_file)
            if self.inode is not None:
                result['inode'] = self.inode
            return result
Sets the values for promises using the return values from the job's run function.
dataset/ETHPy150Open scalyr/scalyr-agent-2/scalyr_agent/log_processing.py/LogFileIterator.FileState.to_json--crossover with--dataset/ETHPy150Open BD2KGenomics/toil/src/toil/job.py/Job._setReturnValuesForPromises