toJson method
Implementation
Map<String, dynamic> toJson() => {
"main_text": mainText,
"main_text_matched_substrings": mainTextMatchedSubstrings == null
? []
: List<dynamic>.from(
mainTextMatchedSubstrings!.map((x) => x.toJson())),
"secondary_text": secondaryText,
};