PagingModel constructor

PagingModel({
  1. @JsonKey(name: 'current_page') int? currentPage,
  2. @JsonKey(name: 'total_pages') int? totalPages,
  3. @JsonKey(name: 'total_count') int? totalCount,
  4. @JsonKey(name: 'next_page') int? nextPage,
  5. @JsonKey(name: 'prev_page') int? prevPage,
})

Implementation

factory PagingModel({
  @JsonKey(name: 'current_page') int? currentPage,
  @JsonKey(name: 'total_pages') int? totalPages,
  @JsonKey(name: 'total_count') int? totalCount,
  @JsonKey(name: 'next_page') int? nextPage,
  @JsonKey(name: 'prev_page') int? prevPage,
}) = _PagingModel;