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