copyWith method
Creates a copy with the given fields replaced.
Implementation
BushaPayConfig copyWith({
String? quoteAmount,
String? quoteCurrency,
String? targetCurrency,
String? sourceCurrency,
String? reference,
String? metaName,
String? metaEmail,
String? metaPhone,
List<PaymentMethod>? allowedPaymentMethods,
}) => BushaPayConfig(
quoteAmount: quoteAmount ?? this.quoteAmount,
quoteCurrency: quoteCurrency ?? this.quoteCurrency,
targetCurrency: targetCurrency ?? this.targetCurrency,
sourceCurrency: sourceCurrency ?? this.sourceCurrency,
reference: reference ?? this.reference,
metaName: metaName ?? this.metaName,
metaEmail: metaEmail ?? this.metaEmail,
metaPhone: metaPhone ?? this.metaPhone,
allowedPaymentMethods: allowedPaymentMethods ?? this.allowedPaymentMethods,
);