toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['main_text'] = this.mainText;
if (this.mainTextMatchedSubstrings != null) {
data['main_text_matched_substrings'] =
this.mainTextMatchedSubstrings!.map((v) => v.toJson()).toList();
}
data['secondary_text'] = this.secondaryText;
return data;
}