Card constructor
Implementation
@JsonSerializable(explicitToJson: true)
const factory Card({
/// The brand associated to the card e.g. (visa, amex).
String? brand,
/// Two letter iso code.
String? country,
/// four digit number representing the year of expiry of the card.
int? expYear,
/// two digit number representing the month of expire of the card.
int? expMonth,
/// card funding type e.g. (credit, debit).
String? funding,
/// last four digits of the card.
String? last4,
/// The preffered card brand for payment
String? preferredNetwork,
/// The available networks the card can run.
List<String>? availableNetworks,
/// Three 3ds usage data.
ThreeDSecureUsage? threeDSecureUsage,
}) = _Card;