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