deletePatientsByIds method
Future<List<StoredDocumentIdentifier> >
deletePatientsByIds(
- String sdkId,
- List<
StoredDocumentIdentifier> entityIds
Implementation
Future<List<StoredDocumentIdentifier>> deletePatientsByIds(String sdkId, List<StoredDocumentIdentifier> entityIds) async {
final res = await _methodChannel.invokeMethod<String>(
'PatientBasicApi.deletePatientsByIds',
{
"sdkId": sdkId,
"entityIds": jsonEncode(entityIds.map((x0) => StoredDocumentIdentifier.encode(x0)).toList()),
}
).catchError(convertPlatformException);
if (res == null) throw AssertionError("received null result from platform method deletePatientsByIds");
final parsedResJson = jsonDecode(res);
return (parsedResJson as List<dynamic>).map((x1) => StoredDocumentIdentifier.fromJSON(x1) ).toList();
}