NodeType.fromJson constructor
NodeType.fromJson(
- Map json_
Implementation
NodeType.fromJson(core.Map json_)
: this(
availableCustomCoreCounts:
json_.containsKey('availableCustomCoreCounts')
? (json_['availableCustomCoreCounts'] as core.List)
.map((value) => value as core.int)
.toList()
: null,
capabilities: json_.containsKey('capabilities')
? (json_['capabilities'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
diskSizeGb: json_.containsKey('diskSizeGb')
? json_['diskSizeGb'] as core.int
: null,
displayName: json_.containsKey('displayName')
? json_['displayName'] as core.String
: null,
families: json_.containsKey('families')
? (json_['families'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
memoryGb: json_.containsKey('memoryGb')
? json_['memoryGb'] as core.int
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
nodeTypeId: json_.containsKey('nodeTypeId')
? json_['nodeTypeId'] as core.String
: null,
totalCoreCount: json_.containsKey('totalCoreCount')
? json_['totalCoreCount'] as core.int
: null,
virtualCpuCount: json_.containsKey('virtualCpuCount')
? json_['virtualCpuCount'] as core.int
: null,
);