getEntityTemplates method

Future<List<EntityTemplate>> getEntityTemplates(
  1. String sdkId,
  2. List<String> entityTemplateIds
)

Implementation

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