copyWith method

CustomerRequestMessage copyWith({
  1. String? email,
  2. String? name,
  3. String? cpfOrCnpj,
  4. String? withCopyEmails,
  5. String? notes,
  6. List<CustomVariables>? customVariables,
  7. String? zipCode,
  8. int? number,
  9. String? complement,
})

Implementation

CustomerRequestMessage copyWith({
  String? email,
  String? name,
  String? cpfOrCnpj,
  String? withCopyEmails,
  String? notes,
  List<CustomVariables>? customVariables,
  String? zipCode,
  int? number,
  String? complement,
}) {
  return CustomerRequestMessage(
    email: email ?? this.email,
    name: name ?? this.name,
    cpfOrCnpj: cpfOrCnpj ?? this.cpfOrCnpj,
    withCopyEmails: withCopyEmails ?? this.withCopyEmails,
    notes: notes ?? this.notes,
    customVariables: customVariables ?? this.customVariables,
    zipCode: zipCode ?? this.zipCode,
    number: number ?? this.number,
    complement: complement ?? this.complement,
  );
}