toJson method

Map<String, dynamic> toJson()

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,
    };