deleteTemplateById method
Deleted a template by it's unique id.
correlation_id
(optional) transaction id to trace execution through call chain.id
an id of the template to be deleted Return Future that receives deleted template Throws error.
Implementation
@override
Future<MessageTemplateV1?> deleteTemplateById(
String? correlationId, String id) async {
var result = await callCommand(
'delete_template_by_id', correlationId, {'template_id': id});
if (result == null) return null;
var item = MessageTemplateV1();
item.fromJson(json.decode(result));
return item;
}