toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'query'] = this.query;
  if (this.documents != null) {
    json[r'documents'] = this.documents;
  } else {
    json[r'documents'] = null;
  }
  if (this.file != null) {
    json[r'file'] = this.file;
  } else {
    json[r'file'] = null;
  }
  if (this.maxRerank != null) {
    json[r'max_rerank'] = this.maxRerank;
  } else {
    json[r'max_rerank'] = null;
  }
  if (this.returnMetadata != null) {
    json[r'return_metadata'] = this.returnMetadata;
  } else {
    json[r'return_metadata'] = null;
  }
  if (this.user != null) {
    json[r'user'] = this.user;
  } else {
    json[r'user'] = null;
  }
  return json;
}