toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'runName': runName,
  'suiteName': suiteName,
  'taskId': taskId,
  'trialIndex': trialIndex,
  'startedAt': startedAt.toIso8601String(),
  'endedAt': endedAt.toIso8601String(),
  'status': status.name,
  if (failureReason != null) 'failureReason': failureReason,
};