Client.fromJson constructor

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

Implementation

factory Client.fromJson(Map<String, dynamic> json) => Client(
      id: json["id"],
      email: json["email"],
      firstName: json["first_name"],
      lastName: json["last_name"],
      phone: (json["phone"]["number"]),
      docNumber: (json["identification"]["number"]),
      description: json["description"],
      defaultCard: json["default_card"],
      cards: List<Card>.from(json["cards"].map((x) => Card.fromJson(x))),
    );