toJson method
Converts a RollingUpdateStatefulSetStrategy instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempMaxUnavailable = maxUnavailable;
final tempPartition = partition;
if (tempMaxUnavailable != null) {
jsonData['maxUnavailable'] = tempMaxUnavailable;
}
if (tempPartition != null) {
jsonData['partition'] = tempPartition;
}
return jsonData;
}