toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.restrictedToAllowlist != null) {
    json[r'restricted_to_allowlist'] = this.restrictedToAllowlist;
  } else {
    json[r'restricted_to_allowlist'] = null;
  }
  if (this.fromEmailAddress != null) {
    json[r'from_email_address'] = this.fromEmailAddress;
  } else {
    json[r'from_email_address'] = null;
  }
  if (this.progressiveSignUp != null) {
    json[r'progressive_sign_up'] = this.progressiveSignUp;
  } else {
    json[r'progressive_sign_up'] = null;
  }
  if (this.enhancedEmailDeliverability != null) {
    json[r'enhanced_email_deliverability'] = this.enhancedEmailDeliverability;
  } else {
    json[r'enhanced_email_deliverability'] = null;
  }
  if (this.testMode != null) {
    json[r'test_mode'] = this.testMode;
  } else {
    json[r'test_mode'] = null;
  }
  return json;
}