updateDataOwnerWithNewDelegateKeyPair method

Future<DataOwnerDto?> updateDataOwnerWithNewDelegateKeyPair(
  1. String dataOwnerId,
  2. Map<String, List<String>> newKeyPair
)

Implementation

Future<DataOwnerDto?> updateDataOwnerWithNewDelegateKeyPair(String dataOwnerId, Map<String, List<String>> newKeyPair) async {
  try {
    return await _doUpdateDataOwnerWithNewDelegateKeyPair(dataOwnerId, newKeyPair);
  } on ApiException {
    hcParties.remove(dataOwnerId);
    patients.remove(dataOwnerId);
    devices.remove(dataOwnerId);
    return _doUpdateDataOwnerWithNewDelegateKeyPair(dataOwnerId, newKeyPair);
  }
}