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!.toJson(),
      if (executionInfo != null) 'executionInfo': executionInfo!.toJson(),
      if (id != null) 'id': id!,
      if (jobMetadata != null) 'jobMetadata': jobMetadata!.toJson(),
      if (labels != null) 'labels': labels!,
      if (location != null) 'location': location!,
      if (name != null) 'name': name!,
      if (pipelineDescription != null)
        'pipelineDescription': pipelineDescription!.toJson(),
      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!.map((value) => value.toJson()).toList(),
      if (startTime != null) 'startTime': startTime!,
      if (steps != null)
        'steps': steps!.map((value) => value.toJson()).toList(),
      if (stepsLocation != null) 'stepsLocation': stepsLocation!,
      if (tempFiles != null) 'tempFiles': tempFiles!,
      if (transformNameMapping != null)
        'transformNameMapping': transformNameMapping!,
      if (type != null) 'type': type!,
    };