toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.object != null) {
json[r'object'] = this.object;
} else {
json[r'object'] = null;
}
json[r'score'] = this.score;
json[r'document'] = this.document;
json[r'text'] = this.text;
if (this.previousTexts != null) {
json[r'previous_texts'] = this.previousTexts;
} else {
json[r'previous_texts'] = null;
}
if (this.nextTexts != null) {
json[r'next_texts'] = this.nextTexts;
} else {
json[r'next_texts'] = null;
}
return json;
}