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