toJson method
Implementation
Map<String, Object?> toJson() {
var textSelection = this.textSelection;
var textSelectionMatchCount = this.textSelectionMatchCount;
var textSelectionMatchIndex = this.textSelectionMatchIndex;
final json = <String, Object?>{};
if (textSelection != null) {
json[r'textSelection'] = textSelection;
}
if (textSelectionMatchCount != null) {
json[r'textSelectionMatchCount'] = textSelectionMatchCount;
}
if (textSelectionMatchIndex != null) {
json[r'textSelectionMatchIndex'] = textSelectionMatchIndex;
}
return json;
}