InstanceGroupAutoscalingPolicyConfig.fromJson constructor

InstanceGroupAutoscalingPolicyConfig.fromJson(
  1. Map json_
)

Implementation

InstanceGroupAutoscalingPolicyConfig.fromJson(core.Map json_)
    : this(
        maxInstances: json_.containsKey('maxInstances')
            ? json_['maxInstances'] as core.int
            : null,
        minInstances: json_.containsKey('minInstances')
            ? json_['minInstances'] as core.int
            : null,
        weight:
            json_.containsKey('weight') ? json_['weight'] as core.int : null,
      );