toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
  "data": data == null ? [] : List<dynamic>.from(data!.map((x) => x.toMap())),
  "count": count,
  "page_size": pageSize,
  "current_page": currentPage,
  "last_page": lastPage,
};