toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() {
final endIndex = this.endIndex;
final startIndex = this.startIndex;
final text = this.text;
return {'endIndex': ?endIndex, 'startIndex': ?startIndex, 'text': ?text};
}