toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (autoscalingSettings != null)
'autoscalingSettings': autoscalingSettings!.toJson(),
if (dataDisks != null)
'dataDisks': dataDisks!.map((value) => value.toJson()).toList(),
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!.map((value) => value.toJson()).toList(),
if (poolArgs != null) 'poolArgs': poolArgs!,
if (sdkHarnessContainerImages != null)
'sdkHarnessContainerImages': sdkHarnessContainerImages!
.map((value) => value.toJson())
.toList(),
if (subnetwork != null) 'subnetwork': subnetwork!,
if (taskrunnerSettings != null)
'taskrunnerSettings': taskrunnerSettings!.toJson(),
if (teardownPolicy != null) 'teardownPolicy': teardownPolicy!,
if (workerHarnessContainerImage != null)
'workerHarnessContainerImage': workerHarnessContainerImage!,
if (zone != null) 'zone': zone!,
};