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