toJson method
Converts a ScaleSpec instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempReplicas = replicas;
if (tempReplicas != null) {
jsonData['replicas'] = tempReplicas;
}
return jsonData;
}