copyWith method
Implementation
PaymentInfoModel copyWith({
String? number,
String? verificationValue,
String? firstName,
String? lastName,
String? month,
String? year,
}) {
return PaymentInfoModel(
number: number ?? this.number,
verificationValue: verificationValue ?? this.verificationValue,
firstName: firstName ?? this.firstName,
lastName: lastName ?? this.lastName,
month: month ?? this.month,
year: year ?? this.year,
);
}