Pagination.fromJson constructor

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

Implementation

Pagination.fromJson(Map<String, dynamic> json) {
  // print('pagination => $json');
  _total = json['total'];
  _lastPage = json['lastPage'];
  _perPage = json['perPage'];
  _currentPage = json['currentPage'];
  /*if (json['items'] != null) {
    _items = _ToListandMap(jsonEncode(json['items']));
  }*/
}