toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var results = this.results;
  var start = this.start;
  var limit = this.limit;
  var size = this.size;
  var totalSize = this.totalSize;
  var cqlQuery = this.cqlQuery;
  var searchDuration = this.searchDuration;
  var archivedResultCount = this.archivedResultCount;
  var links = this.links;

  final json = <String, Object?>{};
  json[r'results'] = results.map((i) => i.toJson()).toList();
  json[r'start'] = start;
  json[r'limit'] = limit;
  json[r'size'] = size;
  json[r'totalSize'] = totalSize;
  json[r'cqlQuery'] = cqlQuery;
  json[r'searchDuration'] = searchDuration;
  if (archivedResultCount != null) {
    json[r'archivedResultCount'] = archivedResultCount;
  }
  json[r'_links'] = links.toJson();
  return json;
}