shareWithMany method

Future<Message> shareWithMany(
  1. String sdkId,
  2. Message message,
  3. Map<String, MessageShareOptions> delegates
)

Implementation

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