BasicAutoscalingAlgorithm.fromJson constructor

BasicAutoscalingAlgorithm.fromJson(
  1. Map json_
)

Implementation

BasicAutoscalingAlgorithm.fromJson(core.Map json_)
    : this(
        cooldownPeriod: json_.containsKey('cooldownPeriod')
            ? json_['cooldownPeriod'] as core.String
            : null,
        sparkStandaloneConfig: json_.containsKey('sparkStandaloneConfig')
            ? SparkStandaloneAutoscalingConfig.fromJson(
                json_['sparkStandaloneConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        yarnConfig: json_.containsKey('yarnConfig')
            ? BasicYarnAutoscalingConfig.fromJson(
                json_['yarnConfig'] as core.Map<core.String, core.dynamic>)
            : null,
      );