AwsVmDetails.fromJson constructor
AwsVmDetails.fromJson(
- Map json_
Implementation
AwsVmDetails.fromJson(core.Map json_)
: this(
architecture: json_.containsKey('architecture')
? json_['architecture'] as core.String
: null,
bootOption: json_.containsKey('bootOption')
? json_['bootOption'] as core.String
: null,
committedStorageMb: json_.containsKey('committedStorageMb')
? json_['committedStorageMb'] as core.String
: null,
cpuCount: json_.containsKey('cpuCount')
? json_['cpuCount'] as core.int
: null,
diskCount: json_.containsKey('diskCount')
? json_['diskCount'] as core.int
: null,
displayName: json_.containsKey('displayName')
? json_['displayName'] as core.String
: null,
instanceType: json_.containsKey('instanceType')
? json_['instanceType'] as core.String
: null,
memoryMb: json_.containsKey('memoryMb')
? json_['memoryMb'] as core.int
: null,
osDescription: json_.containsKey('osDescription')
? json_['osDescription'] as core.String
: null,
powerState: json_.containsKey('powerState')
? json_['powerState'] as core.String
: null,
securityGroups: json_.containsKey('securityGroups')
? (json_['securityGroups'] as core.List)
.map((value) => AwsSecurityGroup.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
sourceDescription: json_.containsKey('sourceDescription')
? json_['sourceDescription'] as core.String
: null,
sourceId: json_.containsKey('sourceId')
? json_['sourceId'] as core.String
: null,
tags: json_.containsKey('tags')
? (json_['tags'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
virtualizationType: json_.containsKey('virtualizationType')
? json_['virtualizationType'] as core.String
: null,
vmId: json_.containsKey('vmId') ? json_['vmId'] as core.String : null,
vpcId:
json_.containsKey('vpcId') ? json_['vpcId'] as core.String : null,
zone: json_.containsKey('zone') ? json_['zone'] as core.String : null,
);