MachineType.fromJson constructor
MachineType.fromJson(
- Map json_
Implementation
MachineType.fromJson(core.Map json_)
: this(
accelerators: json_.containsKey('accelerators')
? (json_['accelerators'] as core.List)
.map((value) => MachineTypeAccelerators.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
creationTimestamp: json_.containsKey('creationTimestamp')
? json_['creationTimestamp'] as core.String
: null,
deprecated: json_.containsKey('deprecated')
? DeprecationStatus.fromJson(
json_['deprecated'] as core.Map<core.String, core.dynamic>)
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
guestCpus: json_.containsKey('guestCpus')
? json_['guestCpus'] as core.int
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
imageSpaceGb: json_.containsKey('imageSpaceGb')
? json_['imageSpaceGb'] as core.int
: null,
isSharedCpu: json_.containsKey('isSharedCpu')
? json_['isSharedCpu'] as core.bool
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
maximumPersistentDisks: json_.containsKey('maximumPersistentDisks')
? json_['maximumPersistentDisks'] as core.int
: null,
maximumPersistentDisksSizeGb:
json_.containsKey('maximumPersistentDisksSizeGb')
? json_['maximumPersistentDisksSizeGb'] as core.String
: null,
memoryMb: json_.containsKey('memoryMb')
? json_['memoryMb'] as core.int
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
scratchDisks: json_.containsKey('scratchDisks')
? (json_['scratchDisks'] as core.List)
.map((value) => MachineTypeScratchDisks.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
selfLink: json_.containsKey('selfLink')
? json_['selfLink'] as core.String
: null,
zone: json_.containsKey('zone') ? json_['zone'] as core.String : null,
);