toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (endIndex != null) 'endIndex': endIndex!,
if (partIndex != null) 'partIndex': partIndex!,
if (startIndex != null) 'startIndex': startIndex!,
if (text != null) 'text': text!,
};