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