Data.fromMap constructor
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"],
);