copyWith method

CurrentSessionYookassa copyWith({
  1. String? username,
  2. String? password,
  3. String? idempotenceKey,
  4. String? paymentId,
  5. String? refundId,
  6. double? amount,
})

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