modifyPatient method

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

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);
}