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