toJson method
Converts a ContainerResourceMetricSource instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempContainer = container;
final tempName = name;
final tempTarget = target;
jsonData['container'] = tempContainer;
jsonData['name'] = tempName;
jsonData['target'] = tempTarget.toJson();
return jsonData;
}