copyWith method

PaymentTokenRequest copyWith({
  1. String? accountId,
  2. String? method,
  3. bool? test,
  4. PaymentInfoModel? paymentData,
})

Implementation

PaymentTokenRequest copyWith({
  String? accountId,
  String? method,
  bool? test,
  PaymentInfoModel? paymentData,
}) {
  return PaymentTokenRequest(
    accountId: accountId ?? this.accountId,
    method: method ?? this.method,
    test: test ?? this.test,
    paymentData: paymentData ?? this.paymentData,
  );
}