toMap method
Implementation
Map<String, dynamic> toMap() => {
"is_first_page": isFirstPage,
"total_elements": totalElements,
"total_pages": totalPages,
"is_last_page": isLastPage,
"content": content == null ? [] : List<dynamic>.from(content!.map((x) => x.toMap())),
"current_page": currentPage,
"page_size": pageSize,
};