modifyDocuments method

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

Implementation

Future<List<Document>> modifyDocuments(String sdkId, List<Document> entities) async {
	final res = await _methodChannel.invokeMethod<String>(
		'DocumentApi.tryAndRecover.modifyDocuments',
		{
			"sdkId": sdkId,
			"entities": jsonEncode(entities.map((x0) => Document.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) => Document.fromJSON(x1) ).toList();
}