copyWith method

  1. @override
ChargeRequest copyWith({
  1. int? paymentId,
  2. int? rebillId,
  3. bool? sendEmail,
  4. String? infoEmail,
  5. String? ip,
  6. String? signToken,
})
override

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

Implementation

@override
ChargeRequest copyWith({
  int? paymentId,
  int? rebillId,
  bool? sendEmail,
  String? infoEmail,
  String? ip,
  String? signToken,
}) {
  return ChargeRequest(
    paymentId: paymentId ?? this.paymentId,
    rebillId: rebillId ?? this.rebillId,
    sendEmail: sendEmail ?? this.sendEmail,
    infoEmail: infoEmail ?? this.infoEmail,
    ip: ip ?? this.ip,
    signToken: signToken ?? this.signToken,
  );
}