toJson method
Implementation
Map<String, dynamic> toJson() {
final jmxExporter = this.jmxExporter;
final nodeExporter = this.nodeExporter;
return {
if (jmxExporter != null) 'jmxExporter': jmxExporter,
if (nodeExporter != null) 'nodeExporter': nodeExporter,
};
}