toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (activeUnits != null) 'activeUnits': activeUnits!,
      if (completedUnits != null) 'completedUnits': completedUnits!,
      if (elapsedMs != null) 'elapsedMs': elapsedMs!,
      if (estimatedRunnableUnits != null)
        'estimatedRunnableUnits': estimatedRunnableUnits!,
      if (pendingUnits != null) 'pendingUnits': pendingUnits!,
      if (totalSlotMs != null) 'totalSlotMs': totalSlotMs!,
    };