tools/fuchsia/comparative_tester/test_results.py
def ToJsonDict(self) -> Dict[str, Any]:
    """Converts a TestResult object to a JSON-serializable dictionary.

    Returns:
      Dict[str, Any]: The output dictionary object that can be directly
          serialized to JSON.
    """
    return {
        "name": self.name,
        "time_in_ms": self.time,
        "lines": [line.ToJsonDict() for line in self.lines]
    }
Converts a TestResult object to a JSON-serializable dictionary.

    Returns:
      Dict[str, Any]: The output dictionary object that can be directly
          serialized to JSON.
    
Converts a TestResult object to a JSON-serializable dictionary.
Converts a TestResult object to a JSON - serializable dictionary .
def ToJsonDict(self) -> Dict[str, Any]:
    return {
        "name": self.name,
        "time_in_ms": self.time,
        "lines": [line.ToJsonDict() for line in self.lines]
    }
def ToJsonDict ( self ) -> Dict [ str , Any ] : return { "name" : self . name , "time_in_ms" : self . time , "lines" : [ line . ToJsonDict ( ) for line in self . lines ] }
Converts a TestResult object to a JSON-serializable dictionary.
Converts a TestResult object to a JSON - serializable dictionary .
"""Converts a TestResult object to a JSON-serializable dictionary.

    Returns:
      Dict[str, Any]: The output dictionary object that can be directly
          serialized to JSON.
    """
The output dictionary object that can be directly
serialized to JSON.
The output dictionary object that can be directly serialized to JSON .
Dict[str, Any]
self