ComputeEngineTargetDetails.fromJson constructor
ComputeEngineTargetDetails.fromJson(
- Map json_
Implementation
ComputeEngineTargetDetails.fromJson(core.Map json_)
: this(
additionalLicenses: json_.containsKey('additionalLicenses')
? (json_['additionalLicenses'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
appliedLicense: json_.containsKey('appliedLicense')
? AppliedLicense.fromJson(json_['appliedLicense']
as core.Map<core.String, core.dynamic>)
: null,
bootOption: json_.containsKey('bootOption')
? json_['bootOption'] as core.String
: null,
computeScheduling: json_.containsKey('computeScheduling')
? ComputeScheduling.fromJson(json_['computeScheduling']
as core.Map<core.String, core.dynamic>)
: null,
diskType: json_.containsKey('diskType')
? json_['diskType'] as core.String
: null,
encryption: json_.containsKey('encryption')
? Encryption.fromJson(
json_['encryption'] as core.Map<core.String, core.dynamic>)
: null,
hostname: json_.containsKey('hostname')
? json_['hostname'] as core.String
: 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,
licenseType: json_.containsKey('licenseType')
? json_['licenseType'] as core.String
: null,
machineType: json_.containsKey('machineType')
? json_['machineType'] as core.String
: null,
machineTypeSeries: json_.containsKey('machineTypeSeries')
? json_['machineTypeSeries'] 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,
networkInterfaces: json_.containsKey('networkInterfaces')
? (json_['networkInterfaces'] as core.List)
.map((value) => NetworkInterface.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
networkTags: json_.containsKey('networkTags')
? (json_['networkTags'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
project: json_.containsKey('project')
? json_['project'] as core.String
: null,
secureBoot: json_.containsKey('secureBoot')
? json_['secureBoot'] as core.bool
: null,
serviceAccount: json_.containsKey('serviceAccount')
? json_['serviceAccount'] as core.String
: null,
vmName: json_.containsKey('vmName')
? json_['vmName'] as core.String
: null,
zone: json_.containsKey('zone') ? json_['zone'] as core.String : null,
);