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