Skip to content

ParticipantData

Participant data for all participants in a study deployment with studyDeploymentId.

Returned by ParticipationService.getParticipantData. Values are keyed by input data type (see InputType); unset values are null.

Annotations

Constructors

ParticipantData.fromJson

ParticipantData.fromJson(
  1. Map<String, dynamic> json
)

ParticipantData

ParticipantData({
  1. required String studyDeploymentId,
  2. Map<String, Data?> common = const {},
  3. List<RoleData> roles = const [],
})

Properties

common

Map<String, Data?> common
getter/setter pair

Data that is related to everyone in the study deployment.

roles

List<RoleData> roles
getter/setter pair

Data that is related to specific roles in the study deployment.

studyDeploymentId

String studyDeploymentId
getter/setter pair

The study deployment this data belongs to.

Methods

toJson

Map<String, dynamic> toJson()