copyWith method

CoreCardIoResponse copyWith({
  1. CoreCardIoCardType? cardType,
  2. String? cardholderName,
  3. String? cardNumber,
  4. String? redactedCardNumber,
  5. int? expiryMonth,
  6. int? expiryYear,
  7. String? cvv,
  8. String? postalCode,
})
inherited

Implementation

CoreCardIoResponse copyWith(
    {CoreCardIoCardType? cardType,
    String? cardholderName,
    String? cardNumber,
    String? redactedCardNumber,
    int? expiryMonth,
    int? expiryYear,
    String? cvv,
    String? postalCode}) {
  return CoreCardIoResponse(
    cardType: cardType ?? this.cardType,
    cardholderName: cardholderName ?? this.cardholderName,
    cardNumber: cardNumber ?? this.cardNumber,
    redactedCardNumber: redactedCardNumber ?? this.redactedCardNumber,
    expiryMonth: expiryMonth ?? this.expiryMonth,
    expiryYear: expiryYear ?? this.expiryYear,
    cvv: cvv ?? this.cvv,
    postalCode: postalCode ?? this.postalCode,
  );
}