Map<String, dynamic> toJson() => { "testID": testID, "error": error, "stackTrace": stackTrace, "isFailure": isFailure, "type": type, "time": time, };