createEntityTemplate method

Future<EntityTemplate> createEntityTemplate(
  1. String sdkId,
  2. EntityTemplate applicationSettings
)

Implementation

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