toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (accumulatorUpdates != null)
        'accumulatorUpdates': accumulatorUpdates!,
      if (attempt != null) 'attempt': attempt!,
      if (durationMillis != null) 'durationMillis': durationMillis!,
      if (errorMessage != null) 'errorMessage': errorMessage!,
      if (executorId != null) 'executorId': executorId!,
      if (executorLogs != null) 'executorLogs': executorLogs!,
      if (gettingResultTimeMillis != null)
        'gettingResultTimeMillis': gettingResultTimeMillis!,
      if (hasMetrics != null) 'hasMetrics': hasMetrics!,
      if (host != null) 'host': host!,
      if (index != null) 'index': index!,
      if (launchTime != null) 'launchTime': launchTime!,
      if (partitionId != null) 'partitionId': partitionId!,
      if (resultFetchStart != null) 'resultFetchStart': resultFetchStart!,
      if (schedulerDelayMillis != null)
        'schedulerDelayMillis': schedulerDelayMillis!,
      if (speculative != null) 'speculative': speculative!,
      if (stageAttemptId != null) 'stageAttemptId': stageAttemptId!,
      if (stageId != null) 'stageId': stageId!,
      if (status != null) 'status': status!,
      if (taskId != null) 'taskId': taskId!,
      if (taskLocality != null) 'taskLocality': taskLocality!,
      if (taskMetrics != null) 'taskMetrics': taskMetrics!,
    };