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