getBy method

  1. @override
Future<StudyProtocol> getBy(
  1. String protocolId, [
  2. String? versionTag
])
override

Return the StudyProtocol with the specified protocolId,

versionTag is the tag of the specific version of the protocol to return. The latest version is returned when not specified.

Implementation

@override
Future<StudyProtocol> getBy(String protocolId, [String? versionTag]) async =>
    StudyProtocol.fromJson(await _rpc(GetBy(protocolId, versionTag)));