Shopper constructor

Shopper({
  1. Address? billingAddress,
  2. required String cpf,
  3. required String email,
  4. required String firstName,
  5. required String lastName,
  6. required String phone,
  7. String? birthDate,
})

Creates a new instance of Shopper.

Example:

final shopper = Shopper(
  billingAddress: Address(
    city: 'City',
    number: '123',
    state: 'State',
    street: 'Street',
    zipCode: '12345678',
  ),
  cpf: '12345678909',
  email: 'email@email.com',
  firstName: 'First Name',
  lastName: 'Last Name',
  phone: '1234567890',
  birthDate: '1990-01-01',
);

Implementation

Shopper({
  this.billingAddress,
  required this.cpf,
  required this.email,
  required this.firstName,
  required this.lastName,
  required this.phone,
  this.birthDate,
});