copyWith method
Создает экземпляр с заданными параметрами
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,
);
}