Card.fromJson constructor

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

Implementation

factory Card.fromJson(Map<String, dynamic> json) {
  return Card(
    number: json["number"] ?? "",
    exMonth: json["ex_month"] ?? "",
    exYear: json["ex_year"] ?? "",
    cvv: json["cvv"] ?? "",
  );
}