RolloutOptions.fromJson constructor
RolloutOptions.fromJson(
- Object? j
Implementation
factory RolloutOptions.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return RolloutOptions(
maxUnavailableReplicas: switch (json['maxUnavailableReplicas']) {
null => null,
Object $1 => decodeInt($1),
},
maxUnavailablePercentage: switch (json['maxUnavailablePercentage']) {
null => null,
Object $1 => decodeInt($1),
},
maxSurgeReplicas: switch (json['maxSurgeReplicas']) {
null => null,
Object $1 => decodeInt($1),
},
maxSurgePercentage: switch (json['maxSurgePercentage']) {
null => null,
Object $1 => decodeInt($1),
},
previousDeployedModel: switch (json['previousDeployedModel']) {
null => '',
Object $1 => decodeString($1),
},
revisionNumber: switch (json['revisionNumber']) {
null => 0,
Object $1 => decodeInt($1),
},
);
}