copyWith method
Implementation
PayerModel copyWith({
String? cpfOrCnpj,
String? name,
String? phonePrefix,
String? phone,
String? email,
AddressModel? address,
}) {
return PayerModel(
cpfOrCnpj: cpfOrCnpj ?? this.cpfOrCnpj,
name: name ?? this.name,
phonePrefix: phonePrefix ?? this.phonePrefix,
phone: phone ?? this.phone,
email: email ?? this.email,
address: address ?? this.address,
);
}