Customer constructor

Customer({
  1. required String? id,
  2. required String? email,
  3. required String? phone,
  4. required String? firstName,
  5. required String? lastName,
  6. required String displayName,
  7. required MailingAddress? defaultAddress,
  8. required dynamic numberOfOrders,
  9. required bool? acceptsMarketing,
})

The cart customer constructor

Implementation

factory Customer({
  required String? id,
  required String? email,
  required String? phone,
  required String? firstName,
  required String? lastName,
  required String displayName,
  required MailingAddress? defaultAddress,
  required dynamic numberOfOrders,
  required bool? acceptsMarketing,
}) = _Customer;