CardData constructor
CardData({})
Creates a new instance of CardData.
id: The unique identifier for the card.brand: The brand of the card (e.g., Visa, MasterCard).last4: The last four digits of the card number.expYear: The expiration year of the card.expMonth: The expiration month of the card.name: The name of the cardholder.addressZip: The ZIP code associated with the card's billing address (optional).
Implementation
CardData({
required this.id,
required this.brand,
required this.last4,
required this.expYear,
required this.expMonth,
required this.name,
this.addressZip,
});