Pagination.fromJson constructor

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

Implementation

factory Pagination.fromJson(Map<String, dynamic> json) => Pagination(
      totalItems: json["total_items"],
      perPage: json["per_page"],
      currentPage: json["currentPage"],
      totalPages: json["totalPages"],
      from: json["from"],
      to: json["to"],
      nextPage: json["next_page"],
      previousPage: json["previous_page"],
    );