SparkStandaloneAutoscalingConfig.fromJson constructor
SparkStandaloneAutoscalingConfig.fromJson(
- Map json_
Implementation
SparkStandaloneAutoscalingConfig.fromJson(core.Map json_)
: this(
gracefulDecommissionTimeout:
json_.containsKey('gracefulDecommissionTimeout')
? json_['gracefulDecommissionTimeout'] as core.String
: null,
removeOnlyIdleWorkers: json_.containsKey('removeOnlyIdleWorkers')
? json_['removeOnlyIdleWorkers'] as core.bool
: null,
scaleDownFactor: json_.containsKey('scaleDownFactor')
? (json_['scaleDownFactor'] as core.num).toDouble()
: null,
scaleDownMinWorkerFraction:
json_.containsKey('scaleDownMinWorkerFraction')
? (json_['scaleDownMinWorkerFraction'] as core.num).toDouble()
: null,
scaleUpFactor: json_.containsKey('scaleUpFactor')
? (json_['scaleUpFactor'] as core.num).toDouble()
: null,
scaleUpMinWorkerFraction:
json_.containsKey('scaleUpMinWorkerFraction')
? (json_['scaleUpMinWorkerFraction'] as core.num).toDouble()
: null,
);