toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.domain != null) {
    json[r'domain'] = this.domain;
  } else {
    json[r'domain'] = null;
  }
  if (this.emailFromName != null) {
    json[r'emailFromName'] = this.emailFromName;
  } else {
    json[r'emailFromName'] = null;
  }
  if (this.emailFromEmail != null) {
    json[r'emailFromEmail'] = this.emailFromEmail;
  } else {
    json[r'emailFromEmail'] = null;
  }
  if (this.logoSrc != null) {
    json[r'logoSrc'] = this.logoSrc;
  } else {
    json[r'logoSrc'] = null;
  }
  if (this.logoSrc100px != null) {
    json[r'logoSrc100px'] = this.logoSrc100px;
  } else {
    json[r'logoSrc100px'] = null;
  }
  if (this.footerUnsubscribeURL != null) {
    json[r'footerUnsubscribeURL'] = this.footerUnsubscribeURL;
  } else {
    json[r'footerUnsubscribeURL'] = null;
  }
    json[r'emailHeaders'] = this.emailHeaders;
  return json;
}