setInformedConsent method

Future<void> setInformedConsent(
  1. InformedConsentInput consent, [
  2. String? inputByParticipantRole
])

Set informed consent for the given inputByParticipantRole in this study deployment. If inputByParticipantRole is not specified, the role of the participant in the current deployment is used.

Implementation

Future<void> setInformedConsent(
  InformedConsentInput consent, [
  String? inputByParticipantRole,
]) async {
  ParticipantData.fromJson(await _rpc(SetParticipantData(
    studyDeploymentId,
    {InformedConsentInput.type: consent},
    getParticipantRoleName(inputByParticipantRole),
  )));
}