modifyPatient method
Implementation
Future<EncryptedPatient> modifyPatient(String sdkId, EncryptedPatient entity) async {
final res = await _methodChannel.invokeMethod<String>(
'PatientBasicApi.modifyPatient',
{
"sdkId": sdkId,
"entity": jsonEncode(EncryptedPatient.encode(entity)),
}
);
if (res == null) throw AssertionError("received null result from platform method modifyPatient");
final parsedResJson = jsonDecode(res);
return EncryptedPatient.fromJSON(parsedResJson);
}