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