toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.text != null) {
json[r'text'] = this.text;
} else {
json[r'text'] = null;
}
if (this.index != null) {
json[r'index'] = this.index;
} else {
json[r'index'] = null;
}
if (this.logprobs != null) {
json[r'logprobs'] = this.logprobs;
} else {
json[r'logprobs'] = null;
}
if (this.finishReason != null) {
json[r'finish_reason'] = this.finishReason;
} else {
json[r'finish_reason'] = null;
}
return json;
}