toJson method
Converts a HorizontalPodAutoscalerBehavior instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempScaleDown = scaleDown;
final tempScaleUp = scaleUp;
if (tempScaleDown != null) {
jsonData['scaleDown'] = tempScaleDown.toJson();
}
if (tempScaleUp != null) {
jsonData['scaleUp'] = tempScaleUp.toJson();
}
return jsonData;
}