class PaginationMeta { final int total; final int lastPage; final int currentPage; final int totalPerPage; final int? prevPage; final int? nextPage; PaginationMeta({ required this.total, required this.lastPage, required this.currentPage, required this.totalPerPage, this.prevPage, this.nextPage, }); factory PaginationMeta.fromJson(Map json) { return PaginationMeta( total: json['total'] as int, lastPage: json['lastPage'] as int, currentPage: json['currentPage'] as int, totalPerPage: json['totalPerPage'] as int, prevPage: json['prevPage'] as int?, nextPage: json['nextPage'] as int?, ); } }