CustomersModel.fromJson constructor

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

Implementation

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