core.Map<core.String, core.dynamic> toJson() => { if (metricTime != null) 'metricTime': metricTime!, if (metrics != null) 'metrics': metrics!.map((value) => value.toJson()).toList(), };