shareWith method

Future<EncryptedClassification> shareWith(
  1. String sdkId,
  2. String delegateId,
  3. EncryptedClassification classification,
  4. ClassificationShareOptions? options,
)

Implementation

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