deleteDocumentTemplates method

Future<List<DocIdentifier>> deleteDocumentTemplates(
  1. String sdkId,
  2. List<String> documentTemplateIds
)

Implementation

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