toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (completed != null) 'completed': completed!,
      if (counterUpdates != null)
        'counterUpdates':
            counterUpdates!.map((value) => value.toJson()).toList(),
      if (dynamicSourceSplit != null)
        'dynamicSourceSplit': dynamicSourceSplit!.toJson(),
      if (errors != null)
        'errors': errors!.map((value) => value.toJson()).toList(),
      if (metricUpdates != null)
        'metricUpdates':
            metricUpdates!.map((value) => value.toJson()).toList(),
      if (progress != null) 'progress': progress!.toJson(),
      if (reportIndex != null) 'reportIndex': reportIndex!,
      if (reportedProgress != null)
        'reportedProgress': reportedProgress!.toJson(),
      if (requestedLeaseDuration != null)
        'requestedLeaseDuration': requestedLeaseDuration!,
      if (sourceFork != null) 'sourceFork': sourceFork!.toJson(),
      if (sourceOperationResponse != null)
        'sourceOperationResponse': sourceOperationResponse!.toJson(),
      if (stopPosition != null) 'stopPosition': stopPosition!.toJson(),
      if (totalThrottlerWaitTimeSeconds != null)
        'totalThrottlerWaitTimeSeconds': totalThrottlerWaitTimeSeconds!,
      if (workItemId != null) 'workItemId': workItemId!,
    };