toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (configuration != null) 'configuration': configuration!,
      if (id != null) 'id': id!,
      if (initialReportIndex != null)
        'initialReportIndex': initialReportIndex!,
      if (jobId != null) 'jobId': jobId!,
      if (leaseExpireTime != null) 'leaseExpireTime': leaseExpireTime!,
      if (mapTask != null) 'mapTask': mapTask!.toJson(),
      if (packages != null)
        'packages': packages!.map((value) => value.toJson()).toList(),
      if (projectId != null) 'projectId': projectId!,
      if (reportStatusInterval != null)
        'reportStatusInterval': reportStatusInterval!,
      if (seqMapTask != null) 'seqMapTask': seqMapTask!.toJson(),
      if (shellTask != null) 'shellTask': shellTask!.toJson(),
      if (sourceOperationTask != null)
        'sourceOperationTask': sourceOperationTask!.toJson(),
      if (streamingComputationTask != null)
        'streamingComputationTask': streamingComputationTask!.toJson(),
      if (streamingConfigTask != null)
        'streamingConfigTask': streamingConfigTask!.toJson(),
      if (streamingSetupTask != null)
        'streamingSetupTask': streamingSetupTask!.toJson(),
    };