Skip to content

ExpectedParticipantData

Describes a participant attribute that pertains to all or specified participants in a study.

Added to a protocol with StudyProtocol.addExpectedParticipantData. The values are set and read via a ParticipationService.

Annotations

Constructors

ExpectedParticipantData.fromJson

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

ExpectedParticipantData

ExpectedParticipantData({
  1. required ParticipantAttribute? attribute,
  2. AssignedTo? assignedTo,
})

Properties

assignedTo

AssignedTo assignedTo
getter/setter pair

Determines whether the attribute can be set by all participants in the study (one field for all), or an individual attribute can be set by each of the specified AssignedTo.roleNames (one field per role). Defaults to AssignedTo.all.

attribute

ParticipantAttribute? attribute
getter/setter pair

Methods

toJson

Map<String, dynamic> toJson()