toJson method
Converts a CustomResourceSubresourceScale instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempLabelSelectorPath = labelSelectorPath;
final tempSpecReplicasPath = specReplicasPath;
final tempStatusReplicasPath = statusReplicasPath;
if (tempLabelSelectorPath != null) {
jsonData['labelSelectorPath'] = tempLabelSelectorPath;
}
jsonData['specReplicasPath'] = tempSpecReplicasPath;
jsonData['statusReplicasPath'] = tempStatusReplicasPath;
return jsonData;
}