getUrl method
Returns url with $PARTICIPANT_ID, $DEPLOYMENT_ID and $TRIGGER_ID
replaced by participantId, studyDeploymentId and triggerId.
Only the first occurrence of each variable is replaced.
Implementation
String getUrl(String participantId, String studyDeploymentId, int triggerId) => url
.replaceFirst('\$PARTICIPANT_ID', participantId)
.replaceFirst('\$DEPLOYMENT_ID', studyDeploymentId)
.replaceFirst('\$TRIGGER_ID', triggerId.toString());