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