toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'model'] = this.model;
json[r'question'] = this.question;
json[r'examples'] = this.examples;
json[r'examples_context'] = this.examplesContext;
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.searchModel != null) {
json[r'search_model'] = this.searchModel;
} else {
json[r'search_model'] = null;
}
if (this.maxRerank != null) {
json[r'max_rerank'] = this.maxRerank;
} else {
json[r'max_rerank'] = null;
}
if (this.temperature != null) {
json[r'temperature'] = this.temperature;
} else {
json[r'temperature'] = null;
}
if (this.logprobs != null) {
json[r'logprobs'] = this.logprobs;
} else {
json[r'logprobs'] = null;
}
if (this.maxTokens != null) {
json[r'max_tokens'] = this.maxTokens;
} else {
json[r'max_tokens'] = null;
}
if (this.stop != null) {
json[r'stop'] = this.stop;
} else {
json[r'stop'] = null;
}
if (this.n != null) {
json[r'n'] = this.n;
} else {
json[r'n'] = null;
}
if (this.logitBias != null) {
json[r'logit_bias'] = this.logitBias;
} else {
json[r'logit_bias'] = null;
}
if (this.returnMetadata != null) {
json[r'return_metadata'] = this.returnMetadata;
} else {
json[r'return_metadata'] = null;
}
if (this.returnPrompt != null) {
json[r'return_prompt'] = this.returnPrompt;
} else {
json[r'return_prompt'] = null;
}
if (this.expand != null) {
json[r'expand'] = this.expand;
} else {
json[r'expand'] = null;
}
if (this.user != null) {
json[r'user'] = this.user;
} else {
json[r'user'] = null;
}
return json;
}