copyWith method

  1. @override
ConfirmRequest copyWith({
  1. int? paymentId,
  2. int? amount,
  3. String? ip,
  4. Receipt? receipt,
  5. String? signToken,
})
override

Создает экземпляр с заданными параметрами

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,
  );
}