CardModel.fromMap constructor

CardModel.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory CardModel.fromMap(Map<String, dynamic> json) => CardModel(
  id: json["id"],
  cardNumber: json["card_number"],
  expiryDate: json["expiry_date"],
);