shareWith method
Implementation
Future<DecryptedMaintenanceTask> shareWith(String sdkId, String delegateId, DecryptedMaintenanceTask maintenanceTask, MaintenanceTaskShareOptions? options) async {
final res = await _methodChannel.invokeMethod<String>(
'MaintenanceTaskApi.shareWith',
{
"sdkId": sdkId,
"delegateId": jsonEncode(delegateId),
"maintenanceTask": jsonEncode(DecryptedMaintenanceTask.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 DecryptedMaintenanceTask.fromJSON(parsedResJson);
}