getPatientResolvingMerges method

Future<DecryptedPatient> getPatientResolvingMerges(
  1. String sdkId,
  2. String patientId,
  3. int? maxMergeDepth
)

Implementation

Future<DecryptedPatient> getPatientResolvingMerges(String sdkId, String patientId, int? maxMergeDepth) async {
	final res = await _methodChannel.invokeMethod<String>(
		'PatientApi.getPatientResolvingMerges',
		{
			"sdkId": sdkId,
			"patientId": jsonEncode(patientId),
			"maxMergeDepth": jsonEncode(maxMergeDepth),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method getPatientResolvingMerges");
	final parsedResJson = jsonDecode(res);
	return DecryptedPatient.fromJSON(parsedResJson);
}