setParticipantData method

Future<ParticipantData> setParticipantData(
  1. String inputDataType,
  2. ParticipantData data
)

Set participant data for the given inputDataType in thsis study deployment. Returns all data for the specified study deployment, including the newly set data.

Implementation

Future<ParticipantData> setParticipantData(
    String inputDataType, ParticipantData data) async {
  ParticipantData newData = ParticipantData.fromJson(await _rpc(
      SetParticipantData(studyDeploymentId!, inputDataType, data)));
  return newData;
}