StudySubject.fromStudy constructor

StudySubject.fromStudy(
  1. Study study,
  2. String userId,
  3. List<String> selectedInterventionIds,
  4. String? inviteCode,
)

Implementation

StudySubject.fromStudy(this.study, this.userId, this.selectedInterventionIds, this.inviteCode)
    : id = const Uuid().v4(),
      studyId = study.id;