ReadPoolAutoScaleConfig.fromJson constructor

ReadPoolAutoScaleConfig.fromJson(
  1. Map json_
)

Implementation

ReadPoolAutoScaleConfig.fromJson(core.Map json_)
  : this(
      disableScaleIn: json_['disableScaleIn'] as core.bool?,
      enabled: json_['enabled'] as core.bool?,
      maxNodeCount: json_['maxNodeCount'] as core.int?,
      minNodeCount: json_['minNodeCount'] as core.int?,
      scaleInCooldownSeconds: json_['scaleInCooldownSeconds'] as core.int?,
      scaleOutCooldownSeconds: json_['scaleOutCooldownSeconds'] as core.int?,
      targetMetrics: (json_['targetMetrics'] as core.List?)
          ?.map(
            (value) => TargetMetric.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
    );