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