updateTemplate method
Future<MessageTemplateV1?>
updateTemplate(
- String? correlationId,
- MessageTemplateV1 template
override
Updates a template.
correlation_id
(optional) transaction id to trace execution through call chain.template
an template to be updated. Return (optional) Future that receives updated template Throws error.
Implementation
@override
Future<MessageTemplateV1?> updateTemplate(
String? correlationId, MessageTemplateV1 template) async {
var result = await callCommand(
'update_template', correlationId, {'template': template});
if (result == null) return null;
var item = MessageTemplateV1();
item.fromJson(json.decode(result));
return item;
}