BasicYarnAutoscalingConfig.fromJson constructor

BasicYarnAutoscalingConfig.fromJson(
  1. Map json_
)

Implementation

BasicYarnAutoscalingConfig.fromJson(core.Map json_)
    : this(
        gracefulDecommissionTimeout:
            json_.containsKey('gracefulDecommissionTimeout')
                ? json_['gracefulDecommissionTimeout'] as core.String
                : 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,
      );