def get(self):
mail = {<EOL>'<STR_LIT>': self._get_or_none(self.from_email),<EOL>'<STR_LIT>': self._get_or_none(self.subject),<EOL>'<STR_LIT>': [p.get() for p in self.personalizations or []],<EOL>'<STR_LIT:content>': [c.get() for c in self.contents or []],<EOL>'<STR_LIT>': [a.get() for a in self.attachments or []],<EOL>'<STR_LIT>': self._get_or_none(self.template_id),<EOL>'<STR_LIT>': self._flatten_dicts(self.sections),<EOL>'<STR_LIT>': self._flatten_dicts(self.headers),<EOL>'<STR_LIT>': [c.get() for c in self.categories or []],<EOL>'<STR_LIT>': self._flatten_dicts(self.custom_args),<EOL>'<STR_LIT>':  self._get_or_none(self.send_at),<EOL>'<STR_LIT>': self._get_or_none(self.batch_id),<EOL>'<STR_LIT>': self._get_or_none(self.asm),<EOL>'<STR_LIT>': self._get_or_none(self.ip_pool_name),<EOL>'<STR_LIT>': self._get_or_none(self.mail_settings),<EOL>'<STR_LIT>': self._get_or_none(self.tracking_settings),<EOL>'<STR_LIT>': self._get_or_none(self.reply_to),<EOL>}<EOL>return {key: value for key, value in mail.items()<EOL>if value is not None and value != [] and value != {}}<EOL>
Get a JSON-ready representation of this Mail object.

:returns: This Mail object, ready for use in a request body.
:rtype: dict