setInformedConsent method
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),
)));
}