toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (autoscalingSettings != null)
        'autoscalingSettings': autoscalingSettings!,
      if (dataDisks != null) 'dataDisks': dataDisks!,
      if (defaultPackageSet != null) 'defaultPackageSet': defaultPackageSet!,
      if (diskSizeGb != null) 'diskSizeGb': diskSizeGb!,
      if (diskSourceImage != null) 'diskSourceImage': diskSourceImage!,
      if (diskType != null) 'diskType': diskType!,
      if (ipConfiguration != null) 'ipConfiguration': ipConfiguration!,
      if (kind != null) 'kind': kind!,
      if (machineType != null) 'machineType': machineType!,
      if (metadata != null) 'metadata': metadata!,
      if (network != null) 'network': network!,
      if (numThreadsPerWorker != null)
        'numThreadsPerWorker': numThreadsPerWorker!,
      if (numWorkers != null) 'numWorkers': numWorkers!,
      if (onHostMaintenance != null) 'onHostMaintenance': onHostMaintenance!,
      if (packages != null) 'packages': packages!,
      if (poolArgs != null) 'poolArgs': poolArgs!,
      if (sdkHarnessContainerImages != null)
        'sdkHarnessContainerImages': sdkHarnessContainerImages!,
      if (subnetwork != null) 'subnetwork': subnetwork!,
      if (taskrunnerSettings != null)
        'taskrunnerSettings': taskrunnerSettings!,
      if (teardownPolicy != null) 'teardownPolicy': teardownPolicy!,
      if (workerHarnessContainerImage != null)
        'workerHarnessContainerImage': workerHarnessContainerImage!,
      if (zone != null) 'zone': zone!,
    };