toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['page'] = this.page;
  data['size'] = this.size;
  data['totalElements'] = this.totalElements;
  data['totalPages'] = this.totalPages;
  data['last'] = this.last;
  if (this.content != null) {
    data['content'] = this.content!.map((v) => v.toJson()).toList();
  }
  return data;
}