toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'model'] = this.model;
json[r'query'] = this.query;
if (this.examples != null) {
json[r'examples'] = this.examples;
} else {
json[r'examples'] = null;
}
if (this.file != null) {
json[r'file'] = this.file;
} else {
json[r'file'] = null;
}
if (this.labels != null) {
json[r'labels'] = this.labels;
} else {
json[r'labels'] = null;
}
if (this.searchModel != null) {
json[r'search_model'] = this.searchModel;
} else {
json[r'search_model'] = 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.maxExamples != null) {
json[r'max_examples'] = this.maxExamples;
} else {
json[r'max_examples'] = null;
}
if (this.logitBias != null) {
json[r'logit_bias'] = this.logitBias;
} else {
json[r'logit_bias'] = null;
}
if (this.returnPrompt != null) {
json[r'return_prompt'] = this.returnPrompt;
} else {
json[r'return_prompt'] = null;
}
if (this.returnMetadata != null) {
json[r'return_metadata'] = this.returnMetadata;
} else {
json[r'return_metadata'] = 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;
}