CustomerWithCard.fromJson constructor

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

Implementation

factory CustomerWithCard.fromJson(Map<String, dynamic> json) => CustomerWithCard(
  dealerCustomer: json["DealerCustomer"] == null ? null : Customer.fromJson(json["DealerCustomer"]),
  cardListCount: json["CardListCount"],
  cardList: json["CardList"] == null ? [] : List<Card>.from(json["CardList"]!.map((x) => Card.fromJson(x))),
);