modifyDocuments method

Future<List<EncryptedDocument>> modifyDocuments(
  1. String sdkId,
  2. List<EncryptedDocument> entities
)

Implementation

Future<List<EncryptedDocument>> modifyDocuments(String sdkId, List<EncryptedDocument> entities) async {
	final res = await _methodChannel.invokeMethod<String>(
		'DocumentBasicApi.modifyDocuments',
		{
			"sdkId": sdkId,
			"entities": jsonEncode(entities.map((x0) => EncryptedDocument.encode(x0)).toList()),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method modifyDocuments");
	final parsedResJson = jsonDecode(res);
	return (parsedResJson as List<dynamic>).map((x1) => EncryptedDocument.fromJSON(x1) ).toList();
}