code: def to_json(self, include_body=False):
          
  
          message = {
              'emailId': self.email_id,
              'timestamp': isoformat(self.timestamp),
              'subsystem': self.subsystem,
              'subject': self.subject,
              'sender': self.sender,
              'recipients': self.recipients,
              'uuid': self.uuid,
              'messageHtml': None,
              'messageText': None
          }
  
          if include_body:
              message['messageHtml'] = self.message_html
              message['messageText'] = self.message_text
  
          return message
docs: Exports the object to a JSON friendly dict
  
          Args:
              include_body (bool): Include the body of the message in the output
  
          Returns:
               Dict representation of object type