toJson method
Implementation
Map<String, dynamic> toJson() {
final metric = this.metric;
final filter = this.filter;
final groupBy = this.groupBy;
return {
'Metric': metric,
if (filter != null) 'Filter': filter,
if (groupBy != null) 'GroupBy': groupBy,
};
}