linkToPatient method
Future<DecryptedCalendarItem>
linkToPatient(
- String sdkId,
- CalendarItem calendarItem,
- Patient patient,
Implementation
Future<DecryptedCalendarItem> linkToPatient(String sdkId, CalendarItem calendarItem, Patient patient, Set<String> shareLinkWithDelegates) async {
final res = await _methodChannel.invokeMethod<String>(
'CalendarItemApi.linkToPatient',
{
"sdkId": sdkId,
"calendarItem": jsonEncode(CalendarItem.encode(calendarItem)),
"patient": jsonEncode(Patient.encode(patient)),
"shareLinkWithDelegates": jsonEncode(shareLinkWithDelegates.map((x0) => x0).toList()),
}
);
if (res == null) throw AssertionError("received null result from platform method linkToPatient");
final parsedResJson = jsonDecode(res);
return DecryptedCalendarItem.fromJSON(parsedResJson);
}