shareWith method
Implementation
Future<EncryptedMaintenanceTask> shareWith(String sdkId, String delegateId, EncryptedMaintenanceTask maintenanceTask, MaintenanceTaskShareOptions? options) async {
final res = await _methodChannel.invokeMethod<String>(
'MaintenanceTaskApi.encrypted.shareWith',
{
"sdkId": sdkId,
"delegateId": jsonEncode(delegateId),
"maintenanceTask": jsonEncode(EncryptedMaintenanceTask.encode(maintenanceTask)),
"options": jsonEncode(options == null ? null : MaintenanceTaskShareOptions.encode(options!)),
}
);
if (res == null) throw AssertionError("received null result from platform method shareWith");
final parsedResJson = jsonDecode(res);
return EncryptedMaintenanceTask.fromJSON(parsedResJson);
}