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