deletePatient method
Implementation
Future<StoredDocumentIdentifier> deletePatient(String sdkId, Patient patient) async {
final res = await _methodChannel.invokeMethod<String>(
'PatientApi.deletePatient',
{
"sdkId": sdkId,
"patient": jsonEncode(Patient.encode(patient)),
}
).catchError(convertPlatformException);
if (res == null) throw AssertionError("received null result from platform method deletePatient");
final parsedResJson = jsonDecode(res);
return StoredDocumentIdentifier.fromJSON(parsedResJson);
}