InstanceGroupManagerUpdatePolicy.fromJson constructor

InstanceGroupManagerUpdatePolicy.fromJson(
  1. Map json_
)

Implementation

InstanceGroupManagerUpdatePolicy.fromJson(core.Map json_)
    : this(
        instanceRedistributionType:
            json_.containsKey('instanceRedistributionType')
                ? json_['instanceRedistributionType'] as core.String
                : null,
        maxSurge: json_.containsKey('maxSurge')
            ? FixedOrPercent.fromJson(
                json_['maxSurge'] as core.Map<core.String, core.dynamic>)
            : null,
        maxUnavailable: json_.containsKey('maxUnavailable')
            ? FixedOrPercent.fromJson(json_['maxUnavailable']
                as core.Map<core.String, core.dynamic>)
            : null,
        minimalAction: json_.containsKey('minimalAction')
            ? json_['minimalAction'] as core.String
            : null,
        mostDisruptiveAllowedAction:
            json_.containsKey('mostDisruptiveAllowedAction')
                ? json_['mostDisruptiveAllowedAction'] as core.String
                : null,
        replacementMethod: json_.containsKey('replacementMethod')
            ? json_['replacementMethod'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );