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