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