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