toJson method
Converts a PodsMetricSource instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempMetric = metric;
final tempTarget = target;
jsonData['metric'] = tempMetric.toJson();
jsonData['target'] = tempTarget.toJson();
return jsonData;
}