CustomerAttributes constructor

CustomerAttributes({
  1. String? displayName,
  2. String? firstName,
  3. String? lastName,
  4. String? email,
  5. String? gender,
  6. String? mobileNumber,
  7. String? dateOfBirth,
  8. String? joinDate,
  9. String? preferredLanguage,
  10. String? channel,
  11. Map<String, String>? customAttributes,
})

Creates a new CustomerAttributes object.

Arguments (all optional):

  • displayName: The customer's display name.
  • firstName: The customer's first name.
  • lastName: The customer's last name.
  • email: The customer's email address.
  • gender: The customer's gender.
  • mobileNumber: The customer's mobile number.
  • dateOfBirth: The customer's date of birth (API format).
  • joinDate: The customer's join date (API format).
  • preferredLanguage: The customer's preferred language.
  • channel: The channel through which the customer joined (defaults to "mobile").
  • customAttributes: A map of additional custom customer attributes.

Implementation

CustomerAttributes({
  this.displayName,
  this.firstName,
  this.lastName,
  this.email,
  this.gender,
  this.mobileNumber,
  this.dateOfBirth,
  this.joinDate,
  this.preferredLanguage,
  this.channel,
  this.customAttributes,
});