getVersionHistoryFor method
Returns all stored versions for the protocol with the specified protocolId.
Implementation
@override
Future<List<ProtocolVersion>> getVersionHistoryFor(
StudyProtocolId protocolId) async {
Map<String, dynamic> responseJson =
await (_rpc(GetVersionHistoryFor(protocolId)));
List<dynamic> items = responseJson['items'];
return items.map((item) => ProtocolVersion.fromJson(item)).toList();
}