shareWith method

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

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