CardDetails.fromMap constructor

CardDetails.fromMap(
  1. Map<String, String> map
)

Implementation

CardDetails.fromMap(Map<String, String> map) {
  _cardNumber = map['cardNumber'] ?? '';
  _cardIssuer = CardUtils().getCardIssuer(_cardNumber).toString();
  _cardHolderName = map['cardHolderName'] ?? '';
  _expiryDate = map['expiryDate'] ?? '';
}