VirtualMachineConfig.fromJson constructor
VirtualMachineConfig.fromJson(
- Map json_
Implementation
VirtualMachineConfig.fromJson(core.Map json_)
: this(
acceleratorConfig: json_.containsKey('acceleratorConfig')
? RuntimeAcceleratorConfig.fromJson(json_['acceleratorConfig']
as core.Map<core.String, core.dynamic>)
: null,
bootImage: json_.containsKey('bootImage')
? BootImage.fromJson(
json_['bootImage'] as core.Map<core.String, core.dynamic>)
: null,
containerImages: json_.containsKey('containerImages')
? (json_['containerImages'] as core.List)
.map((value) => ContainerImage.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
dataDisk: json_.containsKey('dataDisk')
? LocalDisk.fromJson(
json_['dataDisk'] as core.Map<core.String, core.dynamic>)
: null,
encryptionConfig: json_.containsKey('encryptionConfig')
? EncryptionConfig.fromJson(json_['encryptionConfig']
as core.Map<core.String, core.dynamic>)
: null,
guestAttributes: json_.containsKey('guestAttributes')
? (json_['guestAttributes']
as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
internalIpOnly: json_.containsKey('internalIpOnly')
? json_['internalIpOnly'] as core.bool
: null,
labels: json_.containsKey('labels')
? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
value 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,
nicType: json_.containsKey('nicType')
? json_['nicType'] as core.String
: null,
reservedIpRange: json_.containsKey('reservedIpRange')
? json_['reservedIpRange'] as core.String
: null,
shieldedInstanceConfig: json_.containsKey('shieldedInstanceConfig')
? RuntimeShieldedInstanceConfig.fromJson(
json_['shieldedInstanceConfig']
as core.Map<core.String, core.dynamic>)
: null,
subnet: json_.containsKey('subnet')
? json_['subnet'] as core.String
: null,
tags: json_.containsKey('tags')
? (json_['tags'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
zone: json_.containsKey('zone') ? json_['zone'] as core.String : null,
);