registerMailbox method
Future<MailboxIdDto?>
registerMailbox(
- String? category,
- String? mailTemplateId,
- MailboxRegisterDto? mailboxRegisterDto
Implementation
Future<MailboxIdDto?> registerMailbox (
String? category,
String? mailTemplateId,
MailboxRegisterDto? mailboxRegisterDto
) async {
String path = "/mailbox/$category/$mailTemplateId";
return MailboxIdDto.fromJson(
await post(path, body: mailboxRegisterDto, requireAuthorization:true) ?? {}
);
}