Returns the name of the task definition file and its contents.

def serialized_task(self, task: Task) -> Tuple[str, str]:
        """ Returns the name of the task definition file and its contents.
        """
        return f"{task.hash}.json", task.json