FoulsResponseModel.fromMap constructor

FoulsResponseModel.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory FoulsResponseModel.fromMap(Map<String, dynamic> json) => FoulsResponseModel(
  data: json["data"] == null ? [] : List<FoulsModel>.from(json["data"]!.map((x) => FoulsModel.fromMap(x))),
  count: json["count"],
  pageSize: json["page_size"],
  currentPage: json["current_page"],
  lastPage: json["last_page"],
);