modifyEntityTemplate method

Future<EntityTemplate> modifyEntityTemplate(
  1. String sdkId,
  2. EntityTemplate documentTemplate
)

Implementation

Future<EntityTemplate> modifyEntityTemplate(String sdkId, EntityTemplate documentTemplate) async {
	final res = await _methodChannel.invokeMethod<String>(
		'EntityTemplateApi.modifyEntityTemplate',
		{
			"sdkId": sdkId,
			"documentTemplate": jsonEncode(EntityTemplate.encode(documentTemplate)),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method modifyEntityTemplate");
	final parsedResJson = jsonDecode(res);
	return EntityTemplate.fromJSON(parsedResJson);
}