shareWithMany method

Future<Classification> shareWithMany(
  1. String sdkId,
  2. Classification classification,
  3. Map<String, ClassificationShareOptions> delegates
)

Implementation

Future<Classification> shareWithMany(String sdkId, Classification classification, Map<String, ClassificationShareOptions> delegates) async {
	final res = await _methodChannel.invokeMethod<String>(
		'ClassificationApi.tryAndRecover.shareWithMany',
		{
			"sdkId": sdkId,
			"classification": jsonEncode(Classification.encode(classification)),
			"delegates": jsonEncode(delegates.map((k0, v0) => MapEntry(k0, ClassificationShareOptions.encode(v0)))),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method shareWithMany");
	final parsedResJson = jsonDecode(res);
	return Classification.fromJSON(parsedResJson);
}