WorkerPool.fromJson constructor
WorkerPool.fromJson(
- Map json_
Implementation
WorkerPool.fromJson(core.Map json_)
: this(
autoscalingSettings: json_.containsKey('autoscalingSettings')
? AutoscalingSettings.fromJson(json_['autoscalingSettings']
as core.Map<core.String, core.dynamic>)
: null,
dataDisks: json_.containsKey('dataDisks')
? (json_['dataDisks'] as core.List)
.map((value) => Disk.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
defaultPackageSet: json_.containsKey('defaultPackageSet')
? json_['defaultPackageSet'] as core.String
: null,
diskSizeGb: json_.containsKey('diskSizeGb')
? json_['diskSizeGb'] as core.int
: null,
diskSourceImage: json_.containsKey('diskSourceImage')
? json_['diskSourceImage'] as core.String
: null,
diskType: json_.containsKey('diskType')
? json_['diskType'] as core.String
: null,
ipConfiguration: json_.containsKey('ipConfiguration')
? json_['ipConfiguration'] as core.String
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
machineType: json_.containsKey('machineType')
? json_['machineType'] as core.String
: null,
metadata: json_.containsKey('metadata')
? (json_['metadata'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
network: json_.containsKey('network')
? json_['network'] as core.String
: null,
numThreadsPerWorker: json_.containsKey('numThreadsPerWorker')
? json_['numThreadsPerWorker'] as core.int
: null,
numWorkers: json_.containsKey('numWorkers')
? json_['numWorkers'] as core.int
: null,
onHostMaintenance: json_.containsKey('onHostMaintenance')
? json_['onHostMaintenance'] as core.String
: null,
packages: json_.containsKey('packages')
? (json_['packages'] as core.List)
.map((value) => Package.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
poolArgs: json_.containsKey('poolArgs')
? json_['poolArgs'] as core.Map<core.String, core.dynamic>
: null,
sdkHarnessContainerImages:
json_.containsKey('sdkHarnessContainerImages')
? (json_['sdkHarnessContainerImages'] as core.List)
.map((value) => SdkHarnessContainerImage.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
subnetwork: json_.containsKey('subnetwork')
? json_['subnetwork'] as core.String
: null,
taskrunnerSettings: json_.containsKey('taskrunnerSettings')
? TaskRunnerSettings.fromJson(json_['taskrunnerSettings']
as core.Map<core.String, core.dynamic>)
: null,
teardownPolicy: json_.containsKey('teardownPolicy')
? json_['teardownPolicy'] as core.String
: null,
workerHarnessContainerImage:
json_.containsKey('workerHarnessContainerImage')
? json_['workerHarnessContainerImage'] as core.String
: null,
zone: json_.containsKey('zone') ? json_['zone'] as core.String : null,
);