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