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