toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'prompt'] = this.prompt;
if (this.n != null) {
json[r'n'] = this.n;
} else {
json[r'n'] = null;
}
if (this.size != null) {
json[r'size'] = this.size;
} else {
json[r'size'] = null;
}
if (this.responseFormat != null) {
json[r'response_format'] = this.responseFormat;
} else {
json[r'response_format'] = null;
}
if (this.user != null) {
json[r'user'] = this.user;
} else {
json[r'user'] = null;
}
return json;
}