Pagination class

Base model pagination

Constructors

Pagination({int? total, int? count, required int perPage, required int currentPage, required int totalPages})
Pagination.fromJson(Map<String, dynamic> json)
Make Pagination from Json
factory

Properties

count int?
Count data current page
final
currentPage int
Current page
final
hashCode int
The hash code for this object.
no setterinherited
perPage int
Per page in pagination
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
total int?
Total data
final
totalPages int
Total pages
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert from Pagination to Json
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited