undeletePatient method

Future<Patient> undeletePatient(
  1. String sdkId,
  2. Patient patient
)

Implementation

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