modifyPatient method

Future<EncryptedPatient> modifyPatient(
  1. String sdkId,
  2. EncryptedPatient entity
)

Implementation

Future<EncryptedPatient> modifyPatient(String sdkId, EncryptedPatient entity) async {
	final res = await _methodChannel.invokeMethod<String>(
		'PatientApi.encrypted.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);
}