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