toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (completeWorkStatus != null)
        'completeWorkStatus': completeWorkStatus!.toJson(),
      if (harnessData != null) 'harnessData': harnessData!,
      if (hotKeyDetection != null)
        'hotKeyDetection': hotKeyDetection!.toJson(),
      if (leaseExpireTime != null) 'leaseExpireTime': leaseExpireTime!,
      if (metricShortId != null)
        'metricShortId':
            metricShortId!.map((value) => value.toJson()).toList(),
      if (nextReportIndex != null) 'nextReportIndex': nextReportIndex!,
      if (reportStatusInterval != null)
        'reportStatusInterval': reportStatusInterval!,
      if (splitRequest != null) 'splitRequest': splitRequest!.toJson(),
      if (suggestedStopPoint != null)
        'suggestedStopPoint': suggestedStopPoint!.toJson(),
      if (suggestedStopPosition != null)
        'suggestedStopPosition': suggestedStopPosition!.toJson(),
    };