Pagination.fromJson constructor

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

Implementation

factory Pagination.fromJson(Map<String, dynamic> json) => Pagination(
      currentPage: json["current_page"],
      pageSize: json["page_size"],
      totalPages: json["total_pages"],
      totalItems: json["total_items"],
      hasNextPage: json["has_next_page"],
      hasPreviousPage: json["has_previous_page"],
    );