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