ScannedCardModel.fromJson constructor

ScannedCardModel.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ScannedCardModel.fromJson(Map<String, dynamic> json) {
  return ScannedCardModel(
    number: json['cardNumber'] ?? '',
    cardholder: json['cardHolderName'] ?? '',
    expiry: json['expiryDate'] ?? '',
  );
}