toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.object != null) {
    json[r'object'] = this.object;
  } else {
    json[r'object'] = null;
  }
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
  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;
  }
  return json;
}