copyWith method
Создает экземпляр с заданными параметрами
Implementation
@override
ConfirmRequest copyWith({
int? paymentId,
int? amount,
String? ip,
Receipt? receipt,
String? signToken,
}) {
return ConfirmRequest(
paymentId: paymentId ?? this.paymentId,
amount: amount ?? this.amount,
ip: ip ?? this.ip,
receipt: receipt ?? this.receipt,
signToken: signToken ?? this.signToken,
);
}