toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (activeTasks != null) 'activeTasks': activeTasks!,
      if (completedTasks != null) 'completedTasks': completedTasks!,
      if (count != null) 'count': count!,
      if (diskUsed != null) 'diskUsed': diskUsed!,
      if (failedTasks != null) 'failedTasks': failedTasks!,
      if (isExcluded != null) 'isExcluded': isExcluded!,
      if (maxMemory != null) 'maxMemory': maxMemory!,
      if (memoryMetrics != null) 'memoryMetrics': memoryMetrics!,
      if (memoryUsed != null) 'memoryUsed': memoryUsed!,
      if (rddBlocks != null) 'rddBlocks': rddBlocks!,
      if (totalCores != null) 'totalCores': totalCores!,
      if (totalDurationMillis != null)
        'totalDurationMillis': totalDurationMillis!,
      if (totalGcTimeMillis != null) 'totalGcTimeMillis': totalGcTimeMillis!,
      if (totalInputBytes != null) 'totalInputBytes': totalInputBytes!,
      if (totalShuffleRead != null) 'totalShuffleRead': totalShuffleRead!,
      if (totalShuffleWrite != null) 'totalShuffleWrite': totalShuffleWrite!,
      if (totalTasks != null) 'totalTasks': totalTasks!,
    };