AllCustomersResponse.fromJson constructor

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

Implementation

factory AllCustomersResponse.fromJson(Map<String, dynamic> json) =>
    AllCustomersResponse(
      status: json["status"] == null ? null : json["status"],
      message: json["message"] == null ? null : json["message"],
      data: json["data"] == null
          ? null
          : List<CustomerData>.from(json["data"].map((x) => CustomerData.fromJson(x))),
    );