GceInstance.fromJson constructor
GceInstance.fromJson(
- Map json_
Implementation
GceInstance.fromJson(core.Map json_)
: this(
accelerators: json_.containsKey('accelerators')
? (json_['accelerators'] as core.List)
.map((value) => Accelerator.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
bootDiskSizeGb: json_.containsKey('bootDiskSizeGb')
? json_['bootDiskSizeGb'] as core.int
: null,
confidentialInstanceConfig:
json_.containsKey('confidentialInstanceConfig')
? GceConfidentialInstanceConfig.fromJson(
json_['confidentialInstanceConfig']
as core.Map<core.String, core.dynamic>)
: null,
disablePublicIpAddresses:
json_.containsKey('disablePublicIpAddresses')
? json_['disablePublicIpAddresses'] as core.bool
: null,
disableSsh: json_.containsKey('disableSsh')
? json_['disableSsh'] as core.bool
: null,
enableNestedVirtualization:
json_.containsKey('enableNestedVirtualization')
? json_['enableNestedVirtualization'] as core.bool
: null,
machineType: json_.containsKey('machineType')
? json_['machineType'] as core.String
: null,
poolSize: json_.containsKey('poolSize')
? json_['poolSize'] as core.int
: null,
pooledInstances: json_.containsKey('pooledInstances')
? json_['pooledInstances'] as core.int
: null,
serviceAccount: json_.containsKey('serviceAccount')
? json_['serviceAccount'] as core.String
: null,
serviceAccountScopes: json_.containsKey('serviceAccountScopes')
? (json_['serviceAccountScopes'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
shieldedInstanceConfig: json_.containsKey('shieldedInstanceConfig')
? GceShieldedInstanceConfig.fromJson(
json_['shieldedInstanceConfig']
as core.Map<core.String, core.dynamic>)
: null,
tags: json_.containsKey('tags')
? (json_['tags'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
);