toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.toContacts != null) {
    json[r'toContacts'] = this.toContacts;
  } else {
    json[r'toContacts'] = null;
  }
  if (this.toGroup != null) {
    json[r'toGroup'] = this.toGroup;
  } else {
    json[r'toGroup'] = null;
  }
  if (this.to != null) {
    json[r'to'] = this.to;
  } else {
    json[r'to'] = null;
  }
  if (this.from != null) {
    json[r'from'] = this.from;
  } else {
    json[r'from'] = null;
  }
  if (this.cc != null) {
    json[r'cc'] = this.cc;
  } else {
    json[r'cc'] = null;
  }
  if (this.bcc != null) {
    json[r'bcc'] = this.bcc;
  } else {
    json[r'bcc'] = null;
  }
  if (this.subject != null) {
    json[r'subject'] = this.subject;
  } else {
    json[r'subject'] = null;
  }
  if (this.replyTo != null) {
    json[r'replyTo'] = this.replyTo;
  } else {
    json[r'replyTo'] = null;
  }
  if (this.body != null) {
    json[r'body'] = this.body;
  } else {
    json[r'body'] = null;
  }
  if (this.html != null) {
    json[r'html'] = this.html;
  } else {
    json[r'html'] = null;
  }
  if (this.isHTML != null) {
    json[r'isHTML'] = this.isHTML;
  } else {
    json[r'isHTML'] = null;
  }
  if (this.charset != null) {
    json[r'charset'] = this.charset;
  } else {
    json[r'charset'] = null;
  }
  if (this.attachments != null) {
    json[r'attachments'] = this.attachments;
  } else {
    json[r'attachments'] = null;
  }
  if (this.templateVariables != null) {
    json[r'templateVariables'] = this.templateVariables;
  } else {
    json[r'templateVariables'] = null;
  }
  if (this.template != null) {
    json[r'template'] = this.template;
  } else {
    json[r'template'] = null;
  }
  if (this.sendStrategy != null) {
    json[r'sendStrategy'] = this.sendStrategy;
  } else {
    json[r'sendStrategy'] = null;
  }
  if (this.useInboxName != null) {
    json[r'useInboxName'] = this.useInboxName;
  } else {
    json[r'useInboxName'] = null;
  }
  if (this.addTrackingPixel != null) {
    json[r'addTrackingPixel'] = this.addTrackingPixel;
  } else {
    json[r'addTrackingPixel'] = null;
  }
  if (this.filterBouncedRecipients != null) {
    json[r'filterBouncedRecipients'] = this.filterBouncedRecipients;
  } else {
    json[r'filterBouncedRecipients'] = null;
  }
  if (this.validateEmailAddresses != null) {
    json[r'validateEmailAddresses'] = this.validateEmailAddresses;
  } else {
    json[r'validateEmailAddresses'] = null;
  }
  return json;
}