GoogleCloudAiplatformV1WorkerPoolSpec.fromJson constructor
GoogleCloudAiplatformV1WorkerPoolSpec.fromJson(
- Map json_
Implementation
GoogleCloudAiplatformV1WorkerPoolSpec.fromJson(core.Map json_)
: this(
containerSpec: json_.containsKey('containerSpec')
? GoogleCloudAiplatformV1ContainerSpec.fromJson(
json_['containerSpec'] as core.Map<core.String, core.dynamic>)
: null,
diskSpec: json_.containsKey('diskSpec')
? GoogleCloudAiplatformV1DiskSpec.fromJson(
json_['diskSpec'] as core.Map<core.String, core.dynamic>)
: null,
machineSpec: json_.containsKey('machineSpec')
? GoogleCloudAiplatformV1MachineSpec.fromJson(
json_['machineSpec'] as core.Map<core.String, core.dynamic>)
: null,
nfsMounts: json_.containsKey('nfsMounts')
? (json_['nfsMounts'] as core.List)
.map((value) => GoogleCloudAiplatformV1NfsMount.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
pythonPackageSpec: json_.containsKey('pythonPackageSpec')
? GoogleCloudAiplatformV1PythonPackageSpec.fromJson(
json_['pythonPackageSpec']
as core.Map<core.String, core.dynamic>)
: null,
replicaCount: json_.containsKey('replicaCount')
? json_['replicaCount'] as core.String
: null,
);