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