Data.fromMap constructor

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

Implementation

factory Data.fromMap(Map<String, dynamic> json) => Data(
    list: json["list"] == null ? [] : List<ListElement>.from(json["list"]!.map((x) => ListElement.fromMap(x))),
    totalElements: json["totalElements"],
    totalRecords: json["totalRecords"],
    totalPages: json["totalPages"],
    offset: json["offset"],
    limit: json["limit"],
    pageNumber: json["pageNumber"],
    last: json["last"],
    next: json["next"],
);