NodePool.fromJson constructor
NodePool.fromJson(
- Map json_
Implementation
NodePool.fromJson(core.Map json_)
: this(
autoscaling: json_.containsKey('autoscaling')
? NodePoolAutoscaling.fromJson(
json_['autoscaling'] as core.Map<core.String, core.dynamic>)
: null,
bestEffortProvisioning: json_.containsKey('bestEffortProvisioning')
? BestEffortProvisioning.fromJson(json_['bestEffortProvisioning']
as core.Map<core.String, core.dynamic>)
: null,
conditions: json_.containsKey('conditions')
? (json_['conditions'] as core.List)
.map((value) => StatusCondition.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
config: json_.containsKey('config')
? NodeConfig.fromJson(
json_['config'] as core.Map<core.String, core.dynamic>)
: null,
etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
initialNodeCount: json_.containsKey('initialNodeCount')
? json_['initialNodeCount'] as core.int
: null,
instanceGroupUrls: json_.containsKey('instanceGroupUrls')
? (json_['instanceGroupUrls'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
locations: json_.containsKey('locations')
? (json_['locations'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
management: json_.containsKey('management')
? NodeManagement.fromJson(
json_['management'] as core.Map<core.String, core.dynamic>)
: null,
maxPodsConstraint: json_.containsKey('maxPodsConstraint')
? MaxPodsConstraint.fromJson(json_['maxPodsConstraint']
as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
networkConfig: json_.containsKey('networkConfig')
? NodeNetworkConfig.fromJson(
json_['networkConfig'] as core.Map<core.String, core.dynamic>)
: null,
placementPolicy: json_.containsKey('placementPolicy')
? PlacementPolicy.fromJson(json_['placementPolicy']
as core.Map<core.String, core.dynamic>)
: null,
podIpv4CidrSize: json_.containsKey('podIpv4CidrSize')
? json_['podIpv4CidrSize'] as core.int
: null,
queuedProvisioning: json_.containsKey('queuedProvisioning')
? QueuedProvisioning.fromJson(json_['queuedProvisioning']
as core.Map<core.String, core.dynamic>)
: null,
selfLink: json_.containsKey('selfLink')
? json_['selfLink'] as core.String
: null,
status: json_.containsKey('status')
? json_['status'] as core.String
: null,
statusMessage: json_.containsKey('statusMessage')
? json_['statusMessage'] as core.String
: null,
updateInfo: json_.containsKey('updateInfo')
? UpdateInfo.fromJson(
json_['updateInfo'] as core.Map<core.String, core.dynamic>)
: null,
upgradeSettings: json_.containsKey('upgradeSettings')
? UpgradeSettings.fromJson(json_['upgradeSettings']
as core.Map<core.String, core.dynamic>)
: null,
version: json_.containsKey('version')
? json_['version'] as core.String
: null,
);