createCustomProtocol method Null safety

Future<StudyProtocol> createCustomProtocol(
  1. String ownerId,
  2. String name,
  3. String description,
  4. String customProtocol

Create a study protocol to be deployed to a single device which has its own way of describing study protocols that deviates from the CARP core study protocol model.

The customProtocol is stored in a single CustomProtocolTask which in the CARP study protocol model is described as being triggered at the start of the study for a CustomProtocolDevice with role name "Custom device".


Future<StudyProtocol> createCustomProtocol(
  String ownerId,
  String name,
  String description,
  String customProtocol,