InstanceGroupManagerUpdatePolicy.fromJson constructor
InstanceGroupManagerUpdatePolicy.fromJson(
- Object? j
Implementation
factory InstanceGroupManagerUpdatePolicy.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return InstanceGroupManagerUpdatePolicy(
instanceRedistributionType: switch (json['instanceRedistributionType']) {
null => null,
Object $1 => decodeString($1),
},
maxSurge: switch (json['maxSurge']) {
null => null,
Object $1 => FixedOrPercent.fromJson($1),
},
maxUnavailable: switch (json['maxUnavailable']) {
null => null,
Object $1 => FixedOrPercent.fromJson($1),
},
minimalAction: switch (json['minimalAction']) {
null => null,
Object $1 => decodeString($1),
},
mostDisruptiveAllowedAction:
switch (json['mostDisruptiveAllowedAction']) {
null => null,
Object $1 => decodeString($1),
},
replacementMethod: switch (json['replacementMethod']) {
null => null,
Object $1 => decodeString($1),
},
type: switch (json['type']) {
null => null,
Object $1 => decodeString($1),
},
);
}