toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'id'] = this.id;
    json[r'domain'] = this.domain;
  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;
  }
    json[r'emailHeaders'] = this.emailHeaders;
  if (this.wpSyncToken != null) {
    json[r'wpSyncToken'] = this.wpSyncToken;
  } else {
    json[r'wpSyncToken'] = null;
  }
  if (this.wpSynced != null) {
    json[r'wpSynced'] = this.wpSynced;
  } else {
    json[r'wpSynced'] = null;
  }
  if (this.wpURL != null) {
    json[r'wpURL'] = this.wpURL;
  } else {
    json[r'wpURL'] = null;
  }
    json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
  if (this.autoAddedDate != null) {
    json[r'autoAddedDate'] = this.autoAddedDate!.toUtc().toIso8601String();
  } else {
    json[r'autoAddedDate'] = null;
  }
  if (this.siteType != null) {
    json[r'siteType'] = this.siteType;
  } else {
    json[r'siteType'] = 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;
  }
  if (this.disableUnsubscribeLinks != null) {
    json[r'disableUnsubscribeLinks'] = this.disableUnsubscribeLinks;
  } else {
    json[r'disableUnsubscribeLinks'] = null;
  }
  return json;
}