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