CreditCard.fromMap constructor

CreditCard.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory CreditCard.fromMap(Map<String, dynamic> map) {
  return CreditCard(
    number: map['number'],
    verificationValue: map['verification_value'],
    firstName: map['first_name'],
    lastName: map['last_name'],
    month: map['month'],
    year: map['year'],
  );
}