InstanceGroupConfig.fromJson constructor
InstanceGroupConfig.fromJson(
- Map json_
Implementation
InstanceGroupConfig.fromJson(core.Map json_)
: this(
accelerators: json_.containsKey('accelerators')
? (json_['accelerators'] as core.List)
.map((value) => AcceleratorConfig.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
diskConfig: json_.containsKey('diskConfig')
? DiskConfig.fromJson(
json_['diskConfig'] as core.Map<core.String, core.dynamic>)
: null,
imageUri: json_.containsKey('imageUri')
? json_['imageUri'] as core.String
: null,
instanceFlexibilityPolicy:
json_.containsKey('instanceFlexibilityPolicy')
? InstanceFlexibilityPolicy.fromJson(
json_['instanceFlexibilityPolicy']
as core.Map<core.String, core.dynamic>)
: null,
instanceNames: json_.containsKey('instanceNames')
? (json_['instanceNames'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
instanceReferences: json_.containsKey('instanceReferences')
? (json_['instanceReferences'] as core.List)
.map((value) => InstanceReference.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
isPreemptible: json_.containsKey('isPreemptible')
? json_['isPreemptible'] as core.bool
: null,
machineTypeUri: json_.containsKey('machineTypeUri')
? json_['machineTypeUri'] as core.String
: null,
managedGroupConfig: json_.containsKey('managedGroupConfig')
? ManagedGroupConfig.fromJson(json_['managedGroupConfig']
as core.Map<core.String, core.dynamic>)
: null,
minCpuPlatform: json_.containsKey('minCpuPlatform')
? json_['minCpuPlatform'] as core.String
: null,
minNumInstances: json_.containsKey('minNumInstances')
? json_['minNumInstances'] as core.int
: null,
numInstances: json_.containsKey('numInstances')
? json_['numInstances'] as core.int
: null,
preemptibility: json_.containsKey('preemptibility')
? json_['preemptibility'] as core.String
: null,
startupConfig: json_.containsKey('startupConfig')
? StartupConfig.fromJson(
json_['startupConfig'] as core.Map<core.String, core.dynamic>)
: null,
);