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