copyWith method
Implementation
CurrentSessionYookassa copyWith({
String? username,
String? password,
String? idempotenceKey,
String? paymentId,
String? refundId,
double? amount,
}) {
return CurrentSessionYookassa(
username: username ?? this.username,
password: password ?? this.password,
idempotenceKey: idempotenceKey ?? this.idempotenceKey,
paymentId: paymentId ?? this.paymentId,
refundId: refundId ?? this.refundId,
amount: amount ?? this.amount,
);
}