toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (annotations != null) 'annotations': annotations!,
      if (artifactsGcsBucket != null)
        'artifactsGcsBucket': artifactsGcsBucket!,
      if (build != null) 'build': build!,
      if (createTime != null) 'createTime': createTime!,
      if (deployment != null) 'deployment': deployment!,
      if (errorCode != null) 'errorCode': errorCode!,
      if (errorLogs != null) 'errorLogs': errorLogs!,
      if (errorStatus != null) 'errorStatus': errorStatus!,
      if (labels != null) 'labels': labels!,
      if (logs != null) 'logs': logs!,
      if (name != null) 'name': name!,
      if (previewArtifacts != null) 'previewArtifacts': previewArtifacts!,
      if (previewMode != null) 'previewMode': previewMode!,
      if (serviceAccount != null) 'serviceAccount': serviceAccount!,
      if (state != null) 'state': state!,
      if (terraformBlueprint != null)
        'terraformBlueprint': terraformBlueprint!,
      if (tfErrors != null) 'tfErrors': tfErrors!,
      if (tfVersion != null) 'tfVersion': tfVersion!,
      if (tfVersionConstraint != null)
        'tfVersionConstraint': tfVersionConstraint!,
      if (workerPool != null) 'workerPool': workerPool!,
    };