Paginate.fromJson constructor

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

Implementation

Paginate.fromJson(Map<String, dynamic> json) {
  totalRecords = json['total_records'];
  totalPages = json['total_pages'];
  startOffset = json['start_offset'];
  endOffset = json['end_offset'];
  currentPage = json['current_page'];
}