deleteEntityTemplates method

Future<List<DocIdentifier>> deleteEntityTemplates(
  1. String sdkId,
  2. List<IdWithMandatoryRev> entityTemplateIds
)

Implementation

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