toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'content'] = this.content;
  if (this.pageable != null) {
    json[r'pageable'] = this.pageable;
  } else {
    json[r'pageable'] = null;
  }
  if (this.total != null) {
    json[r'total'] = this.total;
  } else {
    json[r'total'] = null;
  }
    json[r'size'] = this.size;
    json[r'number'] = this.number;
    json[r'numberOfElements'] = this.numberOfElements;
    json[r'totalElements'] = this.totalElements;
    json[r'totalPages'] = this.totalPages;
  if (this.last != null) {
    json[r'last'] = this.last;
  } else {
    json[r'last'] = null;
  }
  if (this.sort != null) {
    json[r'sort'] = this.sort;
  } else {
    json[r'sort'] = null;
  }
  if (this.first != null) {
    json[r'first'] = this.first;
  } else {
    json[r'first'] = null;
  }
  if (this.empty != null) {
    json[r'empty'] = this.empty;
  } else {
    json[r'empty'] = null;
  }
  return json;
}