getAttachmentUrl method

Future<String> getAttachmentUrl(
  1. String sdkId,
  2. String documentId,
  3. String attachmentId
)

Implementation

Future<String> getAttachmentUrl(String sdkId, String documentId, String attachmentId) async {
	final res = await _methodChannel.invokeMethod<String>(
		'DocumentTemplateApi.getAttachmentUrl',
		{
			"sdkId": sdkId,
			"documentId": jsonEncode(documentId),
			"attachmentId": jsonEncode(attachmentId),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method getAttachmentUrl");
	final parsedResJson = jsonDecode(res);
	return (parsedResJson as String);
}