shareWith method

Future<DecryptedMaintenanceTask> shareWith(
  1. String sdkId,
  2. String delegateId,
  3. DecryptedMaintenanceTask maintenanceTask,
  4. MaintenanceTaskShareOptions? options,
)

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);
}