core.Map<core.String, core.dynamic> toJson() => { if (metricOverrides != null) 'metricOverrides': metricOverrides!, if (metricSource != null) 'metricSource': metricSource!, };