SavedCardsModel.fromJson constructor

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

Implementation

factory SavedCardsModel.fromJson(Map<String, dynamic> json) =>
    SavedCardsModel(
      success: json["success"],
      code: json["code"],
      description: json["description"],
      data: json["data"] == null
          ? []
          : List<CardData>.from(
              json["data"]!.map((x) => CardData.fromJson(x))),
    );