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