toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (elapsedTime != null) 'elapsedTime': elapsedTime!.toJson(),
      if (errorCount != null) 'errorCount': errorCount!,
      if (failureCount != null) 'failureCount': failureCount!,
      if (flakyCount != null) 'flakyCount': flakyCount!,
      if (name != null) 'name': name!,
      if (skippedCount != null) 'skippedCount': skippedCount!,
      if (totalCount != null) 'totalCount': totalCount!,
      if (xmlSource != null) 'xmlSource': xmlSource!.toJson(),
    };