toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final data = <String, dynamic>{};
  data['page'] = page;
  data['size'] = size;
  data['totalElements'] = totalElements;
  data['totalPages'] = totalPages;
  data['last'] = last;
  data['first'] = first;
  data['sort'] = sort.toJson();
  data['content'] = content.map((e) => e.toJson()).toList();
  return data;
}