shareWithMany method

Future<DecryptedPatient> shareWithMany(
  1. String sdkId,
  2. DecryptedPatient patient,
  3. Map<String, PatientShareOptions> delegates
)

Implementation

Future<DecryptedPatient> shareWithMany(String sdkId, DecryptedPatient patient, Map<String, PatientShareOptions> delegates) async {
	final res = await _methodChannel.invokeMethod<String>(
		'PatientApi.shareWithMany',
		{
			"sdkId": sdkId,
			"patient": jsonEncode(DecryptedPatient.encode(patient)),
			"delegates": jsonEncode(delegates.map((k0, v0) => MapEntry(k0, PatientShareOptions.encode(v0)))),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method shareWithMany");
	final parsedResJson = jsonDecode(res);
	return DecryptedPatient.fromJSON(parsedResJson);
}