getMailTemplate method

Future<MailTemplateDto?> getMailTemplate(
  1. String? category,
  2. String? mailTemplateId
)

Implementation

Future<MailTemplateDto?> getMailTemplate (
  String? category,
  String? mailTemplateId
) async {
  String path = "/mail-template/$category/$mailTemplateId";
  return MailTemplateDto.fromJson(
    await get(path, requireAuthorization:true) ?? {}
  );
}