shareAllDataOfPatient method
Implementation
Future<ShareAllPatientDataOptionsResult> shareAllDataOfPatient(String sdkId, String patientId, Map<String, Set<ShareAllPatientDataOptionsTag>> delegatesWithShareType) async {
final res = await _methodChannel.invokeMethod<String>(
'PatientApi.shareAllDataOfPatient',
{
"sdkId": sdkId,
"patientId": jsonEncode(patientId),
"delegatesWithShareType": jsonEncode(delegatesWithShareType.map((k0, v0) => MapEntry(k0, v0.map((x1) => ShareAllPatientDataOptionsTag.encode(x1)).toList()))),
}
);
if (res == null) throw AssertionError("received null result from platform method shareAllDataOfPatient");
final parsedResJson = jsonDecode(res);
return ShareAllPatientDataOptionsResult.fromJSON(parsedResJson);
}