shareWith method

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

Implementation

Future<DecryptedClassification> shareWith(String sdkId, String delegateId, DecryptedClassification classification, ClassificationShareOptions? options) async {
	final res = await _methodChannel.invokeMethod<String>(
		'ClassificationApi.shareWith',
		{
			"sdkId": sdkId,
			"delegateId": jsonEncode(delegateId),
			"classification": jsonEncode(DecryptedClassification.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 DecryptedClassification.fromJSON(parsedResJson);
}