modifyPatient method

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

Implementation

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