getAllFor method
Find all StudyProtocol's owned by the owner with ownerId.
In the CARP web service, the ownerId is the logged in user's accountId.
Returns the last version of each StudyProtocol owned by the requested owner,
or an empty list when none are found.
Implementation
@override
Future<List<StudyProtocol>> getAllFor(String? ownerId) async {
Map<String, dynamic> response = await _rpc(GetAllFor(ownerId));
List<dynamic> items = response['items'];
return items.map((item) => StudyProtocol.fromJson(item)).toList();
}