registerMailbox method

Future<MailboxIdDto?> registerMailbox(
  1. String? category,
  2. String? mailTemplateId,
  3. 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) ?? {}
  );
}