toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (clientRequestId != null) 'clientRequestId': clientRequestId!,
      if (createTime != null) 'createTime': createTime!,
      if (createdFromSnapshotId != null)
        'createdFromSnapshotId': createdFromSnapshotId!,
      if (currentState != null) 'currentState': currentState!,
      if (currentStateTime != null) 'currentStateTime': currentStateTime!,
      if (environment != null) 'environment': environment!,
      if (executionInfo != null) 'executionInfo': executionInfo!,
      if (id != null) 'id': id!,
      if (jobMetadata != null) 'jobMetadata': jobMetadata!,
      if (labels != null) 'labels': labels!,
      if (location != null) 'location': location!,
      if (name != null) 'name': name!,
      if (pipelineDescription != null)
        'pipelineDescription': pipelineDescription!,
      if (projectId != null) 'projectId': projectId!,
      if (replaceJobId != null) 'replaceJobId': replaceJobId!,
      if (replacedByJobId != null) 'replacedByJobId': replacedByJobId!,
      if (requestedState != null) 'requestedState': requestedState!,
      if (satisfiesPzs != null) 'satisfiesPzs': satisfiesPzs!,
      if (stageStates != null) 'stageStates': stageStates!,
      if (startTime != null) 'startTime': startTime!,
      if (steps != null) 'steps': steps!,
      if (stepsLocation != null) 'stepsLocation': stepsLocation!,
      if (tempFiles != null) 'tempFiles': tempFiles!,
      if (transformNameMapping != null)
        'transformNameMapping': transformNameMapping!,
      if (type != null) 'type': type!,
    };