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;
  }
  if (this.totalElements != null) {
    json[r'totalElements'] = this.totalElements;
  } else {
    json[r'totalElements'] = null;
  }
  if (this.totalPages != null) {
    json[r'totalPages'] = this.totalPages;
  } else {
    json[r'totalPages'] = null;
  }
  if (this.last != null) {
    json[r'last'] = this.last;
  } else {
    json[r'last'] = null;
  }
  if (this.size != null) {
    json[r'size'] = this.size;
  } else {
    json[r'size'] = null;
  }
  if (this.number != null) {
    json[r'number'] = this.number;
  } else {
    json[r'number'] = null;
  }
  if (this.sort != null) {
    json[r'sort'] = this.sort;
  } else {
    json[r'sort'] = null;
  }
  if (this.numberOfElements != null) {
    json[r'numberOfElements'] = this.numberOfElements;
  } else {
    json[r'numberOfElements'] = 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;
}